mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-04-19 19:14:51 +00:00
* workaround for NETSDK1152 error gets rid of Found multiple publish output files with the same relative path error * fixed mixed indents, thanks visual studio
46 lines
2 KiB
XML
46 lines
2 KiB
XML
<Project Sdk="Microsoft.NET.Sdk.Web">
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>net6.0</TargetFramework>
|
|
<Nullable>enable</Nullable>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
<AssemblyName>LBPUnion.ProjectLighthouse.Servers.API</AssemblyName>
|
|
<RootNamespace>LBPUnion.ProjectLighthouse.Servers.API</RootNamespace>
|
|
<ErrorOnDuplicatePublishOutputFiles>false</ErrorOnDuplicatePublishOutputFiles>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup>
|
|
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
|
<NoWarn>$(NoWarn);1591</NoWarn>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\ProjectLighthouse\ProjectLighthouse.csproj"/>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<None Remove="gitVersion.txt"/>
|
|
<EmbeddedResource Include="gitVersion.txt">
|
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
|
</EmbeddedResource>
|
|
<None Remove="gitBranch.txt"/>
|
|
<EmbeddedResource Include="gitBranch.txt">
|
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
|
</EmbeddedResource>
|
|
<None Remove="gitRemotes.txt"/>
|
|
<EmbeddedResource Include="gitRemotes.txt">
|
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
|
</EmbeddedResource>
|
|
<None Remove="gitUnpushed.txt"/>
|
|
<EmbeddedResource Include="gitUnpushed.txt">
|
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
|
</EmbeddedResource>
|
|
</ItemGroup>
|
|
|
|
<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
|
|
<Exec Command="git describe --long --always --dirty --exclude=\* --abbrev=8 > "$(ProjectDir)/gitVersion.txt""/>
|
|
<Exec Command="git branch --show-current > "$(ProjectDir)/gitBranch.txt""/>
|
|
<Exec Command="git remote -v > "$(ProjectDir)/gitRemotes.txt""/>
|
|
<Exec Command="git log --branches --not --remotes --oneline > "$(ProjectDir)/gitUnpushed.txt""/>
|
|
</Target>
|
|
</Project>
|