Skip to content
This repository has been archived by the owner on Dec 18, 2018. It is now read-only.

Commit

Permalink
Remove unnecessary references. Use CopyToOutputDirectory attribute.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cesar Blum Silveira committed Jan 27, 2017
1 parent 2580f3f commit af66fe1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 27 deletions.
5 changes: 1 addition & 4 deletions samples/SampleApp/SampleApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@
</PropertyGroup>

<ItemGroup>
<Content Include="testCert.pfx">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
</Content>
<Content Include="testCert.pfx" CopyToOutputDirectory="PreserveNewest" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,9 @@
<PackageReference Include="Libuv" Version="1.10.0-*" />
<PackageReference Include="Microsoft.AspNetCore.Hosting" Version="1.2.0-*" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="1.2.0-*" />
<PackageReference Include="System.Buffers" Version="4.4.0-*" />
<PackageReference Include="System.Numerics.Vectors" Version="4.4.0-*" />
<PackageReference Include="System.Threading.Tasks.Extensions" Version="4.4.0-*" />
<PackageReference Include="Microsoft.Extensions.TaskCache.Sources" Version="1.2.0-*">
<PrivateAssets>All</PrivateAssets>
</PackageReference>
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net451' ">
<Reference Include="System.Threading.Tasks" />
<PackageReference Include="Microsoft.Extensions.TaskCache.Sources" Version="1.2.0-*" PrivateAssets="All" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard1.3' ">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@

<ItemGroup>
<Compile Include="..\shared\**\*.cs" />
<Content Include="TestResources\testCert.pfx">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
</Content>
<Content Include="TestResources\testCert.pfx" CopyToOutputDirectory="PreserveNewest" />
</ItemGroup>

<ItemGroup>
Expand All @@ -34,9 +31,7 @@
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp1.1' ">
<PackageReference Include="System.Net.Http.WinHttpHandler" Version="4.4.0-*" />
<PackageReference Include="System.Net.NetworkInformation" Version="4.4.0-*" />
<PackageReference Include="System.Runtime.Serialization.Primitives" Version="4.4.0-*" />
</ItemGroup>

<Target Condition="'$(OS)' == 'Unix'" Name="RunUname" BeforeTargets="CoreCompile">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@

<ItemGroup>
<Compile Include="..\shared\**\*.cs" />
<Content Include="TestResources\testCert.pfx">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
</Content>
<Content Include="TestResources\testCert.pfx" CopyToOutputDirectory="PreserveNewest" />
</ItemGroup>

<ItemGroup>
Expand All @@ -34,9 +31,4 @@
<Reference Include="System.Net.Http" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp1.1' ">
<PackageReference Include="System.Diagnostics.TraceSource" Version="4.4.0-*" />
<PackageReference Include="System.Net.Http.WinHttpHandler" Version="4.4.0-*" />
</ItemGroup>

</Project>

0 comments on commit af66fe1

Please sign in to comment.