2021-06-24 16:36:04 -05:00
|
|
|
<Project>
|
|
|
|
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />
|
|
|
|
|
|
|
|
<PropertyGroup>
|
2021-07-27 10:27:40 -05:00
|
|
|
<BuildCommandArgs>$(StandardSourceBuildArgs)</BuildCommandArgs>
|
|
|
|
<BuildCommandArgs>$(BuildCommandArgs) $(FlagParameterPrefix)warnAsError $(ArcadeFalseBoolBuildArg)</BuildCommandArgs>
|
|
|
|
<BuildCommand>$(StandardSourceBuildCommand) $(BuildCommandArgs)</BuildCommand>
|
2021-06-24 16:36:04 -05:00
|
|
|
|
|
|
|
<!-- NuGet SDK resolver only checks nuget.config files. https://github.com/Microsoft/msbuild/issues/2914 -->
|
2021-06-30 11:21:05 -05:00
|
|
|
<NuGetConfigFile>$(ProjectDirectory)NuGet.config</NuGetConfigFile>
|
2021-06-24 16:36:04 -05:00
|
|
|
|
|
|
|
<GlobalJsonFile>$(ProjectDirectory)global.json</GlobalJsonFile>
|
|
|
|
|
|
|
|
<DependencyVersionInputRepoApiImplemented>true</DependencyVersionInputRepoApiImplemented>
|
|
|
|
<OutputPlacementRepoApiImplemented>false</OutputPlacementRepoApiImplemented>
|
|
|
|
|
|
|
|
<!-- we need to use a prebuilt Arcade to build Arcade -->
|
|
|
|
<UseBootstrapArcade>true</UseBootstrapArcade>
|
|
|
|
<IsToolingProject>true</IsToolingProject>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<ItemGroup>
|
|
|
|
<UseSourceBuiltSdkOverride Include="@(ArcadeBootstrapSdkOverride)" />
|
|
|
|
<BuiltSdkPackageOverride Include="@(ArcadeSdkOverride)" />
|
|
|
|
<BuiltSdkPackageOverride Include="@(ArcadeCoreFxTestingOverride)" />
|
|
|
|
<BuiltSdkPackageOverride Include="@(ArcadePackagingOverride)" />
|
|
|
|
<BuiltSdkPackageOverride Include="@(ArcadeTargetFrameworkSdkOverride)" />
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
<ItemGroup>
|
|
|
|
<EnvironmentVariables Include="UsingToolMicrosoftNetCompilers=false" />
|
|
|
|
<EnvironmentVariables Include="useInstalledDotNetCli=false" />
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
<ItemGroup>
|
|
|
|
<RepositoryReference Include="sourcelink" />
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
<!-- TODO: Temporarily skip this target for now until source-build NuGet packaging is built
|
|
|
|
and packaged into source-built artifacts for 6.0.
|
|
|
|
See https://github.com/dotnet/source-build/issues/2285 -->
|
|
|
|
<Target Name="UsePreviouslySourceBuiltNuGet"
|
2021-07-09 16:42:42 -05:00
|
|
|
Condition=" 'true' == 'false' "
|
2021-06-24 16:36:04 -05:00
|
|
|
BeforeTargets="RepoBuild">
|
|
|
|
<ItemGroup>
|
|
|
|
<PreviouslySourceBuiltNuGetPackageFile Include="$(PrebuiltSourceBuiltPackagesPath)NuGet.Packaging.*.nupkg" />
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
<Error
|
|
|
|
Text="Unable to find any previously source built NuGet.Packaging version to use in Arcade SDK tooling."
|
|
|
|
Condition="'@(PreviouslySourceBuiltNuGetPackageFile)' == ''" />
|
|
|
|
|
|
|
|
<ReadNuGetPackageInfos PackagePaths="@(PreviouslySourceBuiltNuGetPackageFile)">
|
|
|
|
<Output TaskParameter="PackageInfoItems" ItemName="PreviouslySourceBuiltNuGetPackageInfo" />
|
|
|
|
</ReadNuGetPackageInfos>
|
|
|
|
|
|
|
|
<PropertyGroup>
|
|
|
|
<PreviouslySourceBuiltNuGetVersion>%(PreviouslySourceBuiltNuGetPackageInfo.PackageVersion)</PreviouslySourceBuiltNuGetVersion>
|
|
|
|
<BuildCommand>$(BuildCommand) /p:NuGetVersion=$(PreviouslySourceBuiltNuGetVersion)</BuildCommand>
|
|
|
|
</PropertyGroup>
|
|
|
|
</Target>
|
|
|
|
|
|
|
|
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />
|
|
|
|
</Project>
|