Skip to content

Instantly share code, notes, and snippets.

@smaglio81
Last active August 30, 2020 17:22
Show Gist options
  • Save smaglio81/8c7efe0c3e208d773c330cf2d81cef9e to your computer and use it in GitHub Desktop.
Save smaglio81/8c7efe0c3e208d773c330cf2d81cef9e to your computer and use it in GitHub Desktop.
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup Label="Globals">
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NoWarn>$(NoWarn);CS1591;CA1724;CS1574</NoWarn>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>net48</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNet.Mvc" Version="5.2.7" />
<PackageReference Include="Microsoft.AspNet.TelemetryCorrelation" Version="1.0.8" />
<PackageReference Include="Microsoft.AspNet.WebApi" Version="5.2.7" />
<PackageReference Include="Microsoft.CodeDom.Providers.DotNetCompilerPlatform" Version="3.6.0" />
<PackageReference Include="Microsoft.CSharp" Version="4.5.0" />
<PackageReference Include="Microsoft.Owin" Version="3.0.1" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.1" />
</ItemGroup>
<ItemGroup>
<Content Include="Web.Int.config">
<DependentUpon>Web.config</DependentUpon>
</Content>
<Content Include="Web.QA.config">
<DependentUpon>Web.config</DependentUpon>
</Content>
<Content Include="Web.Prod.config">
<DependentUpon>Web.config</DependentUpon>
</Content>
</ItemGroup>
<!-- xproj builds write to /bin/{configuration}/{targetFramework}, and for webapps those files need to be written back to /bin -->
<Target Name="CopyToBin" AfterTargets="AfterBuild">
<ItemGroup>
<BuiltFiles Include="$(OutputPath)\*" />
</ItemGroup>
<MakeDir Directories="bin" />
<Copy SourceFiles="@(BuiltFiles)" DestinationFolder="bin\%(RecursiveDir)" SkipUnchangedFiles="true" />
</Target>
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment