-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consolidate shared csproj config into common.csproj.xml, use PackageI…
…con png
- Loading branch information
1 parent
1543d8f
commit a9df005
Showing
7 changed files
with
89 additions
and
178 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,74 +1,24 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<Import Project="$(SolutionDir)\common.csproj.xml" /> | ||
<PropertyGroup> | ||
<TargetFrameworks>netstandard1.1;net45;netcoreapp2.0;netstandard2.1;netcoreapp3.0;netcoreapp3.1</TargetFrameworks> | ||
<LangVersion>8.0</LangVersion> | ||
<Nullable>enable</Nullable> | ||
<PackageId>Camille.Enums</PackageId> | ||
<RootNamespace>Camille.Enums</RootNamespace> | ||
<Version>3.0.0</Version> | ||
<Authors>MingweiSamuel</Authors> | ||
<Company>MingweiSamuel</Company> | ||
<PackageLicenseUrl>https://www.gnu.org/licenses/gpl-3.0.txt</PackageLicenseUrl> | ||
<Copyright>LGPLv3 2019</Copyright> | ||
<PackageProjectUrl>https://github.com/MingweiSamuel/Camille</PackageProjectUrl> | ||
<PackageIconUrl>http://ddragon.leagueoflegends.com/cdn/8.24.1/img/champion/Camille.png</PackageIconUrl> | ||
<RepositoryUrl>https://github.com/MingweiSamuel/Camille</RepositoryUrl> | ||
<RepositoryType>git</RepositoryType> | ||
<Description>Enums for League of Legends and other Riot Games games.</Description> | ||
<Summary>Enums for League of Legends and other Riot Games games.</Summary> | ||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<GenDir>gen</GenDir> | ||
</PropertyGroup> | ||
|
||
<!-- Camille using Newtonsoft.Json. --> | ||
<PropertyGroup Condition="'$(TargetFramework)' == 'netstandard1.1' Or '$(TargetFramework)' == 'net45' Or '$(TargetFramework)' == 'netcoreapp2.0' Or '$(TargetFramework)' == 'netcoreapp3.0'"> | ||
<DefineConstants>$(DefineConstants);USE_NEWTONSOFT</DefineConstants> | ||
</PropertyGroup> | ||
<!-- Camille using System.Text.Json. --> | ||
<PropertyGroup Condition="'$(TargetFramework)' == 'netstandard2.1' Or '$(TargetFramework)' == 'netcoreapp3.1'"> | ||
<DefineConstants>$(DefineConstants);USE_SYSTEXTJSON</DefineConstants> | ||
</PropertyGroup> | ||
|
||
<!-- Newtonsoft & Nullable attributes from Nuget. --> | ||
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard1.1' Or '$(TargetFramework)' == 'net45' Or '$(TargetFramework)' == 'netcoreapp2.0' Or '$(TargetFramework)' == 'netcoreapp3.0'"> | ||
<PackageReference Include="Newtonsoft.Json" Version="9.0.1" /> | ||
<PackageReference Include="Nullable" Version="1.1.0"> | ||
<PrivateAssets>all</PrivateAssets> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
</PackageReference> | ||
</ItemGroup> | ||
<!-- System.Net.Http from Nuget. --> | ||
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard1.1' Or '$(TargetFramework)' == 'net45'"> | ||
<PackageReference Include="System.Net.Http" Version="4.3.3" /> | ||
</ItemGroup> | ||
<!-- System.Text.Json from Nuget. --> | ||
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.1'"> | ||
<PackageReference Include="System.Text.Json" Version="4.6.0" /> | ||
</ItemGroup> | ||
<!-- System.ComponentModel.DataAnnotations from Nuget. --> | ||
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard1.1' Or '$(TargetFramework)' == 'net45' Or '$(TargetFramework)' == 'netstandard2.1'"> | ||
<PackageReference Include="System.ComponentModel.Annotations" Version="4.6.0" /> | ||
</ItemGroup> | ||
|
||
<Target Name="DownloadTemplateData"> | ||
<Target Name="DownloadTemplateData" BeforeTargets="DownloadTemplateDataTrigger"> | ||
<DownloadFile SourceUrl="http://raw.communitydragon.org/pbe/plugins/rcp-be-lol-game-data/global/default/v1/champion-summary.json" DestinationFolder="$(GenDir)" DestinationFileName=".champion.json" ContinueOnError="true" /> | ||
<DownloadFile SourceUrl="http://www.mingweisamuel.com/riotapi-schema/enums/seasons.json" DestinationFolder="$(GenDir)" DestinationFileName=".seasons.json" ContinueOnError="true" /> | ||
<DownloadFile SourceUrl="http://www.mingweisamuel.com/riotapi-schema/enums/queues.json" DestinationFolder="$(GenDir)" DestinationFileName=".queues.json" ContinueOnError="true" /> | ||
<DownloadFile SourceUrl="http://www.mingweisamuel.com/riotapi-schema/enums/maps.json" DestinationFolder="$(GenDir)" DestinationFileName=".maps.json" ContinueOnError="true" /> | ||
<DownloadFile SourceUrl="http://www.mingweisamuel.com/riotapi-schema/enums/gameModes.json" DestinationFolder="$(GenDir)" DestinationFileName=".gameModes.json" ContinueOnError="true" /> | ||
<DownloadFile SourceUrl="http://www.mingweisamuel.com/riotapi-schema/enums/gameTypes.json" DestinationFolder="$(GenDir)" DestinationFileName=".gameTypes.json" ContinueOnError="true" /> | ||
</Target> | ||
|
||
<!-- On Windows DispatchToInnerBuilds is run due to multiple TargetFrameworks. --> | ||
<Target Name="BuildTemplates" BeforeTargets="DispatchToInnerBuilds" DependsOnTargets="DownloadTemplateData"> | ||
<Exec WorkingDirectory="$(SolutionDir)/srcgen" Command="PowerShell -ExecutionPolicy Bypass -File install.ps1" /> | ||
<Exec WorkingDirectory="$(SolutionDir)" Command="node srcgen/index.js "$(MSBuildProjectDirectory)"" /> | ||
</Target> | ||
<!-- On Unix/OSX DispatchToInnerBuilds is not run so we use GenerateTargetFrameworkMonikerAttribute. --> | ||
<Target Name="BuildTemplatesUnix" BeforeTargets="GenerateTargetFrameworkMonikerAttribute" DependsOnTargets="BuildTemplates" Condition="$(OS) == 'Unix'"> | ||
<Message Text="Building templates on unix." /> | ||
</Target> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,80 +1,23 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<Import Project="$(SolutionDir)\common.csproj.xml" /> | ||
<PropertyGroup> | ||
<TargetFrameworks>netstandard2.1;netcoreapp2.1;netcoreapp3.0;netcoreapp3.1</TargetFrameworks> | ||
<LangVersion>8.0</LangVersion> | ||
<Nullable>enable</Nullable> | ||
<PackageId>Camille.Lcu</PackageId> | ||
<RootNamespace>Camille.Lcu</RootNamespace> | ||
<Version>3.0.0</Version> | ||
<Authors>MingweiSamuel</Authors> | ||
<Company>MingweiSamuel</Company> | ||
<Copyright>MIT 2019 Mingwei Samuel</Copyright> | ||
<PackageProjectUrl>https://github.com/MingweiSamuel/Camille</PackageProjectUrl> | ||
<PackageIconUrl>http://ddragon.leagueoflegends.com/cdn/8.24.1/img/champion/Camille.png</PackageIconUrl> | ||
<RepositoryUrl>https://github.com/MingweiSamuel/Camille</RepositoryUrl> | ||
<RepositoryType>git</RepositoryType> | ||
<Description>League of Legends Client Update API Library.</Description> | ||
<Summary>League of Legends Client Update API Library.</Summary> | ||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild> | ||
<!-- Explicitly generate AssemblyInfo for InternalsVisibleToAttribute --> | ||
<GenerateAssemblyInfo>true</GenerateAssemblyInfo> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<PackageReference Include="MingweiSamuel.TokenBucket" Version="1.0.1" /> | ||
<ProjectReference Include="..\Camille.Enums\Camille.Enums.csproj" /> | ||
</ItemGroup> | ||
|
||
<!-- Make internals visible for testing --> | ||
<ItemGroup> | ||
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleToAttribute"> | ||
<_Parameter1>$(AssemblyName).Test</_Parameter1> | ||
</AssemblyAttribute> | ||
<ProjectReference Include="$(SolutionDir)\Camille.Enums\Camille.Enums.csproj" /> | ||
</ItemGroup> | ||
|
||
<!-- Camille using Newtonsoft.Json. --> | ||
<PropertyGroup Condition="'$(TargetFramework)' == 'netcoreapp2.1' Or '$(TargetFramework)' == 'netcoreapp3.0'"> | ||
<DefineConstants>$(DefineConstants);USE_NEWTONSOFT</DefineConstants> | ||
</PropertyGroup> | ||
<!-- Camille using System.Text.Json. --> | ||
<PropertyGroup Condition="'$(TargetFramework)' == 'netstandard2.1' Or '$(TargetFramework)' == 'netcoreapp3.1'"> | ||
<DefineConstants>$(DefineConstants);USE_SYSTEXTJSON</DefineConstants> | ||
</PropertyGroup> | ||
|
||
<!-- Shim for HttpMethod.Patch --> | ||
<PropertyGroup Condition="'$(TargetFramework)' == 'netcoreapp2.1'"> | ||
<DefineConstants>$(DefineConstants);USE_HTTPMETHOD_PATCH_SHIM</DefineConstants> | ||
</PropertyGroup> | ||
|
||
<!-- Newtonsoft & Nullable attributes from Nuget. --> | ||
<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp2.1' Or '$(TargetFramework)' == 'netcoreapp3.0'"> | ||
<PackageReference Include="Newtonsoft.Json" Version="9.0.1" /> | ||
<PackageReference Include="Nullable" Version="1.1.0"> | ||
<PrivateAssets>all</PrivateAssets> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
</PackageReference> | ||
</ItemGroup> | ||
<!-- System.Text.Json & System.Collections.Immutable from Nuget. --> | ||
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.1'"> | ||
<PackageReference Include="System.Text.Json" Version="4.6.0" /> | ||
<PackageReference Include="System.Collections.Immutable" Version="1.6.0" /> | ||
</ItemGroup> | ||
|
||
<Target Name="DownloadTemplateData"> | ||
<!-- TODO --> | ||
</Target> | ||
|
||
<!-- On Windows DispatchToInnerBuilds is run due to multiple TargetFrameworks. --> | ||
<Target Name="BuildTemplates" BeforeTargets="DispatchToInnerBuilds" DependsOnTargets="DownloadTemplateData"> | ||
<Exec WorkingDirectory="$(SolutionDir)/srcgen" Command="PowerShell -ExecutionPolicy Bypass -File install.ps1" /> | ||
<Exec WorkingDirectory="$(SolutionDir)" Command="node srcgen/index.js "$(MSBuildProjectDirectory)"" /> | ||
</Target> | ||
<!-- On Unix/OSX DispatchToInnerBuilds is not run so we use GenerateTargetFrameworkMonikerAttribute. --> | ||
<Target Name="BuildTemplatesUnix" BeforeTargets="GenerateTargetFrameworkMonikerAttribute" DependsOnTargets="BuildTemplates" Condition="$(OS) == 'Unix'"> | ||
<Message Text="Building templates on unix." /> | ||
</Target> | ||
|
||
<Target Name="EchoEnviornment" BeforeTargets="Build"> | ||
<Message Text="$(TargetFramework) $(OS)" /> | ||
</Target> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,93 +1,30 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<Import Project="$(SolutionDir)\common.csproj.xml" /> | ||
<PropertyGroup> | ||
<TargetFrameworks>netstandard1.1;net45;netcoreapp2.0;netstandard2.1;netcoreapp3.0;netcoreapp3.1</TargetFrameworks> | ||
<LangVersion>8.0</LangVersion> | ||
<Nullable>enable</Nullable> | ||
<PackageId>Camille.RiotGames</PackageId> | ||
<RootNamespace>Camille.RiotGames</RootNamespace> | ||
<Version>3.0.0</Version> | ||
<Authors>MingweiSamuel</Authors> | ||
<Company>MingweiSamuel</Company> | ||
<PackageLicenseUrl>https://www.gnu.org/licenses/gpl-3.0.txt</PackageLicenseUrl> | ||
<Copyright>LGPLv3 2019</Copyright> | ||
<PackageProjectUrl>https://github.com/MingweiSamuel/Camille</PackageProjectUrl> | ||
<PackageIconUrl>http://ddragon.leagueoflegends.com/cdn/8.24.1/img/champion/Camille.png</PackageIconUrl> | ||
<RepositoryUrl>https://github.com/MingweiSamuel/Camille</RepositoryUrl> | ||
<RepositoryType>git</RepositoryType> | ||
<Description>Riot Games API library. Fully rate limited, automatic retrying, thread-safe. V4 Supported.</Description> | ||
<Summary>Riot Games API library. Fully rate limited, automatic retrying, thread-safe. V4 Supported.</Summary> | ||
<PackageTags>riot games api league of legends camille riotsharp</PackageTags> | ||
<FileVersion>1.0.0.0</FileVersion> | ||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild> | ||
<!-- Explicitly generate AssemblyInfo for InternalsVisibleToAttribute --> | ||
<GenerateAssemblyInfo>true</GenerateAssemblyInfo> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<GenDir>gen</GenDir> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<PackageReference Include="MingweiSamuel.TokenBucket" Version="1.0.1" /> | ||
<ProjectReference Include="..\Camille.Enums\Camille.Enums.csproj" /> | ||
<ProjectReference Include="$(SolutionDir)\Camille.Enums\Camille.Enums.csproj" /> | ||
</ItemGroup> | ||
|
||
<!-- Make internals visible for testing --> | ||
<ItemGroup> | ||
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleToAttribute"> | ||
<_Parameter1>$(AssemblyName).Test</_Parameter1> | ||
</AssemblyAttribute> | ||
</ItemGroup> | ||
|
||
<!-- Camille using Newtonsoft.Json. --> | ||
<PropertyGroup Condition="'$(TargetFramework)' == 'netstandard1.1' Or '$(TargetFramework)' == 'net45' Or '$(TargetFramework)' == 'netcoreapp2.0' Or '$(TargetFramework)' == 'netcoreapp3.0'"> | ||
<DefineConstants>$(DefineConstants);USE_NEWTONSOFT</DefineConstants> | ||
</PropertyGroup> | ||
<!-- Camille using System.Text.Json. --> | ||
<PropertyGroup Condition="'$(TargetFramework)' == 'netstandard2.1' Or '$(TargetFramework)' == 'netcoreapp3.1'"> | ||
<DefineConstants>$(DefineConstants);USE_SYSTEXTJSON</DefineConstants> | ||
</PropertyGroup> | ||
|
||
<!-- Newtonsoft & Nullable attributes from Nuget. --> | ||
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard1.1' Or '$(TargetFramework)' == 'net45' Or '$(TargetFramework)' == 'netcoreapp2.0' Or '$(TargetFramework)' == 'netcoreapp3.0'"> | ||
<PackageReference Include="Newtonsoft.Json" Version="9.0.1" /> | ||
<PackageReference Include="Nullable" Version="1.1.0"> | ||
<PrivateAssets>all</PrivateAssets> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
</PackageReference> | ||
</ItemGroup> | ||
<!-- System.Net.Http from Nuget. --> | ||
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard1.1' Or '$(TargetFramework)' == 'net45'"> | ||
<PackageReference Include="System.Net.Http" Version="4.3.3" /> | ||
</ItemGroup> | ||
<!-- System.Text.Json from Nuget. --> | ||
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.1'"> | ||
<PackageReference Include="System.Text.Json" Version="4.6.0" /> | ||
</ItemGroup> | ||
<!-- System.ComponentModel.DataAnnotations from Nuget. --> | ||
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard1.1' Or '$(TargetFramework)' == 'net45' Or '$(TargetFramework)' == 'netstandard2.1'"> | ||
<PackageReference Include="System.ComponentModel.Annotations" Version="4.6.0" /> | ||
</ItemGroup> | ||
|
||
|
||
<ItemGroup> | ||
<Service Include="{508349b6-6b84-4df5-91f0-309beebad82d}" /> | ||
</ItemGroup> | ||
|
||
<Target Name="DownloadTemplateData"> | ||
<Target Name="DownloadTemplateData" BeforeTargets="DownloadTemplateDataTrigger"> | ||
<DownloadFile SourceUrl="http://www.mingweisamuel.com/riotapi-schema/openapi-3.0.0.json" DestinationFolder="$(GenDir)" DestinationFileName=".spec.json" ContinueOnError="true" /> | ||
</Target> | ||
|
||
<!-- On Windows DispatchToInnerBuilds is run due to multiple TargetFrameworks. --> | ||
<Target Name="BuildTemplates" BeforeTargets="DispatchToInnerBuilds" DependsOnTargets="DownloadTemplateData"> | ||
<Exec WorkingDirectory="$(SolutionDir)/srcgen" Command="PowerShell -ExecutionPolicy Bypass -File install.ps1" /> | ||
<Exec WorkingDirectory="$(SolutionDir)" Command="node srcgen/index.js "$(MSBuildProjectDirectory)"" /> | ||
</Target> | ||
<!-- On Unix/OSX DispatchToInnerBuilds is not run so we use GenerateTargetFrameworkMonikerAttribute. --> | ||
<Target Name="BuildTemplatesUnix" BeforeTargets="GenerateTargetFrameworkMonikerAttribute" DependsOnTargets="BuildTemplates" Condition="$(OS) == 'Unix'"> | ||
<Message Text="Building templates on unix." /> | ||
</Target> | ||
|
||
<Target Name="EchoEnviornment" BeforeTargets="Build"> | ||
<Message Text="$(TargetFramework) $(OS)" /> | ||
</Target> | ||
</Project> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
<!-- Project tag cannot include Sdk attribute. --> | ||
<Project> | ||
<PropertyGroup> | ||
<!-- Lang stuff. --> | ||
<LangVersion>8.0</LangVersion> | ||
<Nullable>enable</Nullable> | ||
|
||
<!-- Project stuff. --> | ||
<PackageProjectUrl>https://github.com/MingweiSamuel/Camille</PackageProjectUrl> | ||
<PackageIcon>Camille.png</PackageIcon> | ||
<PackageIconUrl>http://ddragon.leagueoflegends.com/cdn/8.24.1/img/champion/Camille.png</PackageIconUrl> | ||
<RepositoryUrl>https://github.com/MingweiSamuel/Camille</RepositoryUrl> | ||
<RepositoryType>git</RepositoryType> | ||
|
||
<!-- Build stuff. --> | ||
<!-- Ensure package is generated for CI. --> | ||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild> | ||
<!-- Explicitly generate AssemblyInfo for InternalsVisibleToAttribute. --> | ||
<GenerateAssemblyInfo>true</GenerateAssemblyInfo> | ||
<!-- Set source code generation directory. --> | ||
<GenDir>gen</GenDir> | ||
</PropertyGroup> | ||
<!-- Make internals visible for testing --> | ||
<ItemGroup> | ||
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleToAttribute"> | ||
<_Parameter1>$(AssemblyName).Test</_Parameter1> | ||
</AssemblyAttribute> | ||
</ItemGroup> | ||
|
||
|
||
<!-- Include icon image for PackageIcon. --> | ||
<ItemGroup> | ||
<None Include="$(SolutionDir)\$(PackageIcon)" Pack="true" PackagePath="\" /> | ||
</ItemGroup> | ||
|
||
<!-- Camille using Newtonsoft.Json. --> | ||
<PropertyGroup Condition="'$(TargetFramework)' == 'netstandard1.1' Or '$(TargetFramework)' == 'net45' Or '$(TargetFramework)' == 'netcoreapp2.0' Or '$(TargetFramework)' == 'netcoreapp2.1' Or '$(TargetFramework)' == 'netcoreapp3.0'"> | ||
<DefineConstants>$(DefineConstants);USE_NEWTONSOFT</DefineConstants> | ||
</PropertyGroup> | ||
<!-- Camille using System.Text.Json. --> | ||
<PropertyGroup Condition="'$(TargetFramework)' == 'netstandard2.1' Or '$(TargetFramework)' == 'netcoreapp3.1'"> | ||
<DefineConstants>$(DefineConstants);USE_SYSTEXTJSON</DefineConstants> | ||
</PropertyGroup> | ||
|
||
<!-- Newtonsoft & Nullable attributes from Nuget. --> | ||
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard1.1' Or '$(TargetFramework)' == 'net45' Or '$(TargetFramework)' == 'netcoreapp2.0' Or '$(TargetFramework)' == 'netcoreapp2.1' Or '$(TargetFramework)' == 'netcoreapp3.0'"> | ||
<PackageReference Include="Newtonsoft.Json" Version="9.0.1" /> | ||
<PackageReference Include="Nullable" Version="1.1.0"> | ||
<PrivateAssets>all</PrivateAssets> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
</PackageReference> | ||
</ItemGroup> | ||
<!-- System.Net.Http from Nuget. --> | ||
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard1.1' Or '$(TargetFramework)' == 'net45'"> | ||
<PackageReference Include="System.Net.Http" Version="4.3.3" /> | ||
</ItemGroup> | ||
<!-- System.Text.Json & System.Collections.Immutable from Nuget. --> | ||
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.1'"> | ||
<PackageReference Include="System.Text.Json" Version="4.6.0" /> | ||
<PackageReference Include="System.Collections.Immutable" Version="1.6.0" /> | ||
</ItemGroup> | ||
<!-- System.ComponentModel.DataAnnotations from Nuget. --> | ||
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard1.1' Or '$(TargetFramework)' == 'net45' Or '$(TargetFramework)' == 'netstandard2.1'"> | ||
<PackageReference Include="System.ComponentModel.Annotations" Version="4.6.0" /> | ||
</ItemGroup> | ||
|
||
|
||
<!-- Empty target to use with BeforeTargets to download files. --> | ||
<Target Name="DownloadTemplateDataTrigger"></Target> | ||
|
||
<!-- On Windows DispatchToInnerBuilds is run due to multiple TargetFrameworks. --> | ||
<Target Name="BuildTemplates" BeforeTargets="DispatchToInnerBuilds" DependsOnTargets="DownloadTemplateDataTrigger"> | ||
<Exec WorkingDirectory="$(SolutionDir)/srcgen" Command="PowerShell -ExecutionPolicy Bypass -File install.ps1" /> | ||
<Exec WorkingDirectory="$(SolutionDir)" Command="node srcgen/index.js "$(MSBuildProjectDirectory)"" /> | ||
</Target> | ||
<!-- On Unix/OSX DispatchToInnerBuilds is not run so we use GenerateTargetFrameworkMonikerAttribute. --> | ||
<Target Name="BuildTemplatesUnix" BeforeTargets="GenerateTargetFrameworkMonikerAttribute" DependsOnTargets="BuildTemplates" Condition="$(OS) == 'Unix'"> | ||
<Message Text="Building templates on unix." Importance="high" /> | ||
</Target> | ||
</Project> |