-
-
Notifications
You must be signed in to change notification settings - Fork 101
/
CSharpier.MsBuild.csproj
27 lines (25 loc) · 1.16 KB
/
CSharpier.MsBuild.csproj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="../../CSharpier.Build.props"/>
<PropertyGroup>
<!--
targeting more than one framework leads to occasional build errors
and CSharpier.MSBuild just calls csharpier via command line so
targeting other frameworks seems unnecessary
-->
<TargetFramework>netstandard2.0</TargetFramework>
<PackageId>CSharpier.MsBuild</PackageId>
<CSharpierOutputDir>../CSharpier.Cli/bin/$(Configuration)/net5.0</CSharpierOutputDir>
</PropertyGroup>
<!--
Note: There is no <ProjectReference /> here because that would cause msbuild to
make it a dependency in the output package, which causes all sorts of issues as
CSharpier is a net5.0 project with <PackAsTool> and this is neither.
-->
<Target Name="BuildCSharpier" BeforeTargets="Build">
<Exec command="dotnet build -c $(Configuration)" WorkingDirectory="../CSharpier.Cli" />
</Target>
<ItemGroup>
<Content Include="build/*" PackagePath="build/" />
<Content Include="$(CSharpierOutputDir)/**" PackagePath="tools/csharpier" />
</ItemGroup>
</Project>