Hi Abhishek,
I think it is the special feature of uwp project and the nuget package. Also, the nuget package is a system nuget package, it will not be output on the bin folder for new standard project. You should add these in csproj file so that it will appear.
Also, create a net standard lib project and a uwp project, install the same nuget package, use the same node, the uwp project still cannot output the dll. It is the special feature of the uwp project.
As a suggestion,
- You can just copy the dll from
C:\Users\'username'\.nuget\packages\system.servicemodel.primitives\4.8.0\lib
into the bin folder of the uwp project. - you can add an automation msbuild script
Modify the csproj file of the uwp project
add <GeneratePathProperty>true</GeneratePathProperty>
into your project and then add a msbuild target:
<ItemGroup>
<PackageReference Include="System.ServiceModel.Primitives">
<Version>4.8.0</Version>
<GeneratePathProperty>true</GeneratePathProperty>
</PackageReference>
</ItemGroup>
<Target Name="CopyTheFile" AfterTargets="AfterCompile" Condition="!Exists('$(TargetDir)System.ServiceModel.Primitives.dll')">
<ItemGroup>
<File Include="$(PkgSystem_ServiceModel_Primitives)\lib\netstandard2.0\System.ServiceModel.Primitives.dll"></File>
</ItemGroup>
<Copy SourceFiles="@(File)" DestinationFolder="$(TargetDir)"></Copy>
</Target>
Best Regards,
Dylan
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our **documentation to enable e-mail notifications if you want to receive the related email notification for this thread.**