forked from robincornelius/libedssharp
-
Notifications
You must be signed in to change notification settings - Fork 71
/
Copy pathlibEDSsharp.csproj
64 lines (58 loc) · 3.05 KB
/
libEDSsharp.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<Project Sdk="Microsoft.NET.Sdk" InitialTargets="AssignInformationalVersion">
<PropertyGroup>
<TargetFrameworks Condition="'$(BuildNet481)' == 'true'">net481</TargetFrameworks>
<TargetFrameworks Condition="'$(BuildNet6)' == 'true'">net6.0</TargetFrameworks>
<TargetFrameworks Condition="'$(TargetFrameworks)' == ''">net481;net6.0</TargetFrameworks>
<OutputType>Library</OutputType>
<GenerateAssemblyInfo>true</GenerateAssemblyInfo>
<Company></Company>
<Configuration></Configuration>
<Description></Description>
<InformationalVersion></InformationalVersion>
<Product>libEDSsharp</Product>
<Copyright>Copyright © 2016</Copyright>
<AssemblyTitle>libEDSsharp</AssemblyTitle>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<FileVersion>1.0.0.0</FileVersion>
<NeutralLanguage></NeutralLanguage>
</PropertyGroup>
<Target Name="AssignInformationalVersion" >
<Exec Command="git describe --tags --long --dirty" ConsoleToMSBuild="true">
<Output TaskParameter="ConsoleOutput" PropertyName="gitInfo" />
</Exec>
<PropertyGroup>
<InformationalVersion>$(gitInfo)</InformationalVersion>
</PropertyGroup>
</Target>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DocumentationFile>docs\libEDSsharp.xml</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<Compile Update="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<PackageReference Include="System.CodeDom" Version="6.0.0" Condition="'$(TargetFramework)' == 'net6.0'" />
<PackageReference Include="Google.Protobuf" Version="3.27.2" />
<PackageReference Include="Google.Protobuf.Tools" Version="3.27.2" />
</ItemGroup>
<ItemGroup>
<Protobuf Include="proto/CanOpen.proto" />
</ItemGroup>
<Target Name="protocolBufferGenerator" BeforeTargets="BeforeBuild" Inputs="@(Protobuf)" Outputs="bin\$(Configuration)\$(TargetFramework)\blazor_components.dll">
<Exec Command="$(NugetPackageRoot)google.protobuf.tools/3.27.2/tools/linux_x64/protoc --proto_path=$(NugetPackageRoot)google.protobuf.tools/3.27.2/tools/ --proto_path=%(Protobuf.RelativeDir) --csharp_out=./proto %(Protobuf.RelativeDir)%(Protobuf.Filename)%(Protobuf.Extension)" Condition="$([MSBuild]::IsOSPlatform('Linux'))" />
<Exec Command="$(NugetPackageRoot)google.protobuf.tools\3.27.2\tools\windows_x64\protoc --proto_path=$(NugetPackageRoot)google.protobuf.tools\3.27.2\tools\ --proto_path=%(Protobuf.RelativeDir) --csharp_out=.\proto %(Protobuf.RelativeDir)%(Protobuf.Filename)%(Protobuf.Extension)" Condition="$([MSBuild]::IsOSPlatform('Windows'))" />
<ItemGroup>
<Compile Include="proto/*.cs" KeepDuplicates="false" />
</ItemGroup>
</Target>
</Project>