Skip to content

Instantly share code, notes, and snippets.

@guardrex
Last active January 13, 2017 16:01
Show Gist options
  • Save guardrex/58bb9e17a9b372c7bfcd3f79043365ab to your computer and use it in GitHub Desktop.
Save guardrex/58bb9e17a9b372c7bfcd3f79043365ab to your computer and use it in GitHub Desktop.
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<AssemblyTitle>Test Self-contained Application</AssemblyTitle>
<TargetFramework>netcoreapp1.1</TargetFramework>
<WarningsAsErrors>true</WarningsAsErrors>
<PreserveCompilationContext>true</PreserveCompilationContext>
<AssemblyName>testselfcontained</AssemblyName>
<OutputType>Exe</OutputType>
<RuntimeIdentifiers>win10-x64</RuntimeIdentifiers>
<Optimize Condition="'$(Configuration)'!='Debug'">true</Optimize>
<!-- Temporary AppDesignerFolder is added. They're fixing a bug for that now. -->
<AppDesignerFolder>Properties</AppDesignerFolder>
</PropertyGroup>
<!--<ItemGroup>
<Content Include="testfile.txt" CopyToPublishDirectory="Always" CopyToOutputDirectory="Always" />
</ItemGroup>-->
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Diagnostics" Version="1.1.0" />
<PackageReference Include="Microsoft.AspNetCore.Server.Kestrel" Version="1.1.0" />
<PackageReference Include="Microsoft.AspNetCore.Server.IISIntegration" Version="1.1.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="1.1.0" />
<PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="1.1.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="1.1.0" />
</ItemGroup>
<Target Name="CreateLogsFolder" AfterTargets="AfterPublish">
<MakeDir Directories="$(PublishDir)Logs" Condition="!Exists('$(PublishDir)Logs')" />
</Target>
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment