Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
102 commits
Select commit Hold shift + click to select a range
ed1ead8
RepoToolset
tmat Mar 1, 2017
e60de13
Use desktop msbuild for signing
tmat Mar 1, 2017
017d655
Add support for building VSIXes
tmat Mar 8, 2017
238f00f
Support testing without dotnet cli
tmat Mar 11, 2017
0ccbfa9
Set NoBuild=true for NuGet packing
tmat Mar 11, 2017
5523a1a
TestResults dir and DeployExtension
tmat Mar 28, 2017
bec94a4
Don't create TestResults dir
tmat Mar 29, 2017
6ff1bb4
Run GenerateNuspecProperties before GenerateNuspec targets
tmat Apr 3, 2017
2db9075
Fix NuspecBasePath value
tmat Apr 3, 2017
a664b63
PublicSign regardless of BuildProject value
tmat Jun 1, 2017
6e2ba9e
Workaround for lack of support for satallite assembly public signing
tmat Jun 1, 2017
e073f72
RepoToolset v19
tmat Jun 9, 2017
de1141b
Add GenerateResxSource task
tmat Jun 10, 2017
5ffd6d0
Add a link to a workitem
tmat Jun 12, 2017
c0001c9
Add $(VisualStudioSetupComponent) back
tmat Jun 12, 2017
3a7206a
Added nuget.exe to gitignore, fixed Build.proj whitespace issues.
333fred Jul 3, 2017
b9f4abe
Added Rebuild.
333fred Jul 3, 2017
c0cdadc
RepoToolset v21
tmat Jul 14, 2017
8182294
RepoToolset v22
tmat Jul 15, 2017
264ce08
v25
tmat Jul 17, 2017
c87f335
RepoToolset v27
tmat Jul 18, 2017
0e42f8e
Set default version of XliffBuild to 0.2.0-beta-000053
tmat Jul 20, 2017
d76fdac
Remove extra backslash in paths
tmat Jul 20, 2017
3de64cf
Fix signing: always public sign
tmat Jul 20, 2017
799986a
Remove Swix validation, it's not reliable on MicroBuild.
tmat Jul 20, 2017
eba8222
Misc improvements to Test target
tmat Jul 20, 2017
284975e
Workaround for Pack target bug in 15.1
tmat Jul 20, 2017
805ede2
Use lower-cased package names
tmat Jul 20, 2017
8e5a059
Use VSIX version 42.42.42.42 when building locally
tmat Jul 26, 2017
29e7b26
Implement quiet restore workaround
tmat Jul 26, 2017
f45d97a
Allow customization of bin out subdir
tmat Aug 19, 2017
88fcabc
Delete .error.log files of passing test projects
tmat Aug 28, 2017
2f776c1
Avoid using MicroBuild plugin loader
tmat Aug 28, 2017
49323ab
Pass msbuild path to signtool to avoid locating VS
tmat Aug 29, 2017
a15786e
Fix file and vsix versions in CI build
tmat Aug 29, 2017
8230cdd
Pack insertion VSIXes before signing
tmat Aug 30, 2017
66ac4ec
Fix vsman hash calculation
tmat Aug 31, 2017
a09738e
Build of swix packages during Build phase, not Pack
tmat Sep 1, 2017
d402264
Use vswhere to locate msbuild used for signing
tmat Sep 5, 2017
54c84ab
RepoToolset v38
tmat Sep 5, 2017
ba81f2d
Add package reference to MicroBuild
tmat Sep 6, 2017
c78f447
v40
tmat Sep 6, 2017
baa132b
enable F# support
brettfo Sep 7, 2017
71e72a8
don't do F# code generation; it's handled by the F# build tasks
brettfo Sep 29, 2017
2479e3f
adding PostCompileBinaryModification so the ApplyOptimizations task runs
jmarolf Oct 19, 2017
ee75d83
adding comment
jmarolf Oct 19, 2017
1214e5c
Add support for SymStore, PDB conversion, and including Portable PDBs…
tmat Oct 19, 2017
24092ea
Couple of style fixes.
tmat Oct 19, 2017
f894f48
Updating the repo toolset props/targets to be part of 'MSBuildAllProj…
tannergooding Oct 18, 2017
7453c67
Ensure DOTNET_INSTALL_DIR is respected, if set.
tannergooding Oct 18, 2017
67ab2fd
Ensure that 'ProjectLanguage' is set.
tannergooding Oct 18, 2017
2a6bc82
Updating C# NoWarn to include the SDK defaults, if NoWarn is not alre…
tannergooding Oct 18, 2017
85d7b84
Reorganizing the default versions.
tannergooding Oct 18, 2017
c90d247
Adding support for the netcore toolset compiler.
tannergooding Oct 18, 2017
5e5226f
Dropping support for the netcore compiler toolset, as it is not RTM r…
tannergooding Oct 19, 2017
d42e5a4
Removing the ProjectLanguage properties.
tannergooding Oct 19, 2017
5cfc858
Updating NoWarn to not be optional.
tannergooding Oct 19, 2017
888565e
Actually creating PostCompileBinaryModificationSentinelFile variable
jmarolf Oct 21, 2017
82768e5
add auto-generated IVT file to F#'s CompileBefore collection
brettfo Oct 24, 2017
2c5a97b
SourceLink and PathMap
tmat Oct 24, 2017
6d0ec51
DebugType defaults
tmat Oct 25, 2017
7476b91
More tweaks, v48
tmat Oct 25, 2017
170a61c
Updating repo-toolset to use the correct dotnet host name on non-windows
tannergooding Oct 31, 2017
b90cb57
Fix comment
tmat Nov 2, 2017
f41a477
Implement PipeBuild overrides
tmat Nov 2, 2017
d39974f
Merge xunit stderr and stdout into .log file
tmat Nov 3, 2017
879057e
Adding the ability to pass additional parameters to the test runner c…
tannergooding Nov 5, 2017
27e6e07
Updating Test.props to consider .Tests projects as Unit Tests
tannergooding Nov 6, 2017
063ea2f
NuGet restore sources
tmat Nov 7, 2017
bf1ba26
Use Pdb2Pdb by default
tmat Nov 7, 2017
ed2f9ae
Delete nuget.config
tmat Nov 7, 2017
0dc57ad
Updating _TestRunnerCommand so we don't get an error on Linux.
tannergooding Nov 7, 2017
64c2218
PipeBuild publishing
tmat Nov 9, 2017
047318f
Eliminate RepoRestoreSources
tmat Nov 9, 2017
05be434
Update DefaultVersions.props
tmat Nov 9, 2017
23ada64
Sign after Pack
tmat Nov 13, 2017
1d1aaf5
RepoToolset v55
tmat Nov 15, 2017
39e9dde
56
tmat Nov 16, 2017
c9035cd
57
tmat Nov 16, 2017
2c72249
Implement DotNetPackageVersionPropsPath
tmat Nov 16, 2017
5ce1512
58
tmat Nov 18, 2017
ec515f7
Update PDB converter
tmat Nov 18, 2017
6de8e7d
Move to RepoToolset
tmat Nov 15, 2017
15fec75
Restructure RepoToolset build tasks
tmat Jun 10, 2018
0a0c3c3
Fix versioning
tmat Jun 11, 2018
6bac833
Update to RT 1.0.0-beta2-63011-02
tmat Jun 11, 2018
4d15aa2
Allow pre-release dependencies (#274)
tmat Jun 11, 2018
d2178c3
Update RT versions to 1.0.0-beta2-63011-06
tmat Jun 11, 2018
231df73
Fix parameter name
tmat Jun 11, 2018
6371b22
Move BuildTasks into RepoToolset
alexperovich Jun 26, 2018
e22cde0
Move RoslynTools and BuildTasks into subdirectory
alexperovich Jun 26, 2018
20ea860
Move RoslynTools.RepoToolset into Arcade
alexperovich Jun 26, 2018
fd3a925
Use Arcade.Sdk from feed
alexperovich Jun 27, 2018
0e23d84
Merge branch 'master' into alperovi/portRepoToolset
alexperovich Jun 28, 2018
f3ee557
Remove generated package files
alexperovich Jun 28, 2018
0576b9a
PR Feedback
alexperovich Jul 2, 2018
8881700
Merge branch 'master' into alperovi/portRepoToolset
alexperovich Jul 2, 2018
1de7362
Update MSBuild packages versions and switch to net461
alexperovich Jul 2, 2018
ea164c9
Remove unneeded package references.
alexperovich Jul 2, 2018
5089c2a
Remove any
alexperovich Jul 2, 2018
5b2257d
Update SignToolData
alexperovich Jul 2, 2018
2754e7e
Update SignToolData
alexperovich Jul 2, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions Arcade.sln
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.DotNet.SignTool",
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.DotNet.GitSync", "src\Microsoft.DotNet.GitSync\Microsoft.DotNet.GitSync.csproj", "{F7E1C1EF-C234-41BA-A24F-FAD5F357562C}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.DotNet.Arcade.Sdk", "src\Microsoft.DotNet.Arcade.Sdk\Microsoft.DotNet.Arcade.Sdk.csproj", "{747A5C75-6069-4C45-8049-AEAA1D864105}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -130,6 +132,18 @@ Global
{F7E1C1EF-C234-41BA-A24F-FAD5F357562C}.Release|x64.Build.0 = Release|Any CPU
{F7E1C1EF-C234-41BA-A24F-FAD5F357562C}.Release|x86.ActiveCfg = Release|Any CPU
{F7E1C1EF-C234-41BA-A24F-FAD5F357562C}.Release|x86.Build.0 = Release|Any CPU
{747A5C75-6069-4C45-8049-AEAA1D864105}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{747A5C75-6069-4C45-8049-AEAA1D864105}.Debug|Any CPU.Build.0 = Debug|Any CPU
{747A5C75-6069-4C45-8049-AEAA1D864105}.Debug|x64.ActiveCfg = Debug|Any CPU
{747A5C75-6069-4C45-8049-AEAA1D864105}.Debug|x64.Build.0 = Debug|Any CPU
{747A5C75-6069-4C45-8049-AEAA1D864105}.Debug|x86.ActiveCfg = Debug|Any CPU
{747A5C75-6069-4C45-8049-AEAA1D864105}.Debug|x86.Build.0 = Debug|Any CPU
{747A5C75-6069-4C45-8049-AEAA1D864105}.Release|Any CPU.ActiveCfg = Release|Any CPU
{747A5C75-6069-4C45-8049-AEAA1D864105}.Release|Any CPU.Build.0 = Release|Any CPU
{747A5C75-6069-4C45-8049-AEAA1D864105}.Release|x64.ActiveCfg = Release|Any CPU
{747A5C75-6069-4C45-8049-AEAA1D864105}.Release|x64.Build.0 = Release|Any CPU
{747A5C75-6069-4C45-8049-AEAA1D864105}.Release|x86.ActiveCfg = Release|Any CPU
{747A5C75-6069-4C45-8049-AEAA1D864105}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand All @@ -142,6 +156,7 @@ Global
{A31D6804-9AF4-4618-8D73-16B76E3F8347} = {730AF68A-22FD-4372-9341-5F67D7701DA7}
{91FCE4C5-E83B-4C81-B0ED-3EAE417CBBE0} = {A564AF6E-6E4E-44EA-B2D7-C909C6687763}
{FE2D1224-2C69-48E2-AEE6-F524AEACF567} = {730AF68A-22FD-4372-9341-5F67D7701DA7}
{747A5C75-6069-4C45-8049-AEAA1D864105} = {730AF68A-22FD-4372-9341-5F67D7701DA7}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {06E6CFF5-C54E-4623-9587-71A9E3F041D9}
Expand Down
4 changes: 2 additions & 2 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<ImportNetSdkFromRepoToolset>false</ImportNetSdkFromRepoToolset>
</PropertyGroup>

<Import Project="Sdk.props" Sdk="RoslynTools.RepoToolset" />
<Import Project="Sdk.props" Sdk="Microsoft.DotNet.Arcade.Sdk" />

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.


<PropertyGroup>
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
Expand All @@ -15,6 +15,6 @@
<PropertyGroup>
<!-- 'NetFxTfm' is the standard desktop Target Framework Moniker which this repo's packages are targeting
ie. Place 'NetFxTfm' in the 'TargetFramework' property of a csproj like <TargetFrameworks>netcoreapp2.0;$(NetFxTfm)</TargetFrameworks> -->
<NetFxTfm>net45</NetFxTfm>
<NetFxTfm>net461</NetFxTfm>
</PropertyGroup>
</Project>
2 changes: 1 addition & 1 deletion Directory.Build.targets
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<Import Project="Sdk.targets" Sdk="RoslynTools.RepoToolset" />
<Import Project="Sdk.targets" Sdk="Microsoft.DotNet.Arcade.Sdk" />

<Target Name="_InitializeNuspecProperties"
BeforeTargets="GenerateNuSpec"
Expand Down
5 changes: 1 addition & 4 deletions NuGet.Config
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,9 @@
<solution>
<add key="disableSourceControlIntegration" value="true" />
</solution>
<config>
<add key="repositoryPath" value="packages" />
</config>
<packageSources>
<clear />
<add key="myget.org roslyn-tools" value="https://dotnet.myget.org/F/roslyn-tools/api/v3/index.json" />
<add key="arcade" value="https://dotnetfeed.blob.core.windows.net/dotnet-tools-internal/index.json" />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
</packageSources>
</configuration>
61 changes: 61 additions & 0 deletions eng/Sdk.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<Project>
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>

<PropertyGroup>
<PackageType>MSBuildSdk</PackageType>
<IncludeBuildOutput>false</IncludeBuildOutput>
<IsPackable>true</IsPackable>
</PropertyGroup>

<!--
Default to including all *.props and *.targets files
from the project directory into the nuget package root
-->
<ItemGroup Condition="'$(EnableDefaultItems)' != 'false'">
<None Condition="'$(EnableDefaultNoneItems)' != 'false'"
Include="**/*.props;**/*.targets" Pack="true">
<PackagePath>%(RecursiveDir)%(Filename)%(Extension)</PackagePath>
</None>
</ItemGroup>

<ItemGroup>

This comment was marked as spam.

This comment was marked as spam.

<!--
Update all PackageReference and ProjectReference Items to have
PrivateAssets="All" and default Publish to true
This removes the dependency nodes from the generated nuspec and
forces the publish output to contain the dlls.
-->
<PackageReference Update="@(PackageReference)">
<PrivateAssets>All</PrivateAssets>
<Publish Condition=" '%(PackageReference.Publish)' != 'false' ">true</Publish>
</PackageReference>
<ProjectReference Update="@(ProjectReference)">
<PrivateAssets>All</PrivateAssets>
<Publish Condition=" '%(ProjectReference.Publish)' != 'false' ">true</Publish>
</ProjectReference>
<!--
Update all Reference items to have Pack="false"
This removes the frameworkDependency nodes from the generated nuspec
-->
<Reference Update="@(Reference)">
<Pack>false</Pack>
</Reference>
</ItemGroup>

<!--
if $(IncludePublishOutput) it not 'false' add Publish as a dependency to Pack
and include TfmSpecificPackageFile items for all published files
-->
<PropertyGroup Condition="'$(IncludePublishOutput)' != 'false'">
<TargetsForTfmSpecificContentInPackage>$(TargetsForTfmSpecificContentInPackage);CollectAssets</TargetsForTfmSpecificContentInPackage>
</PropertyGroup>
<Target Name="CollectAssets" DependsOnTargets="Publish">
<ItemGroup>
<TfmSpecificPackageFile Include="@(ResolvedFileToPublish->'$([MSBuild]::NormalizeDirectory($(PublishDir)))%(RelativePath)')">
<PackagePath>tools/$(TargetFramework)/%(ResolvedFileToPublish.RelativePath)</PackagePath>
</TfmSpecificPackageFile>
</ItemGroup>
</Target>
</Project>
28 changes: 22 additions & 6 deletions eng/SignToolData.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,19 @@
"values": [
"bin/Microsoft.DotNet.Build.Tasks.Feed/netstandard1.5/Microsoft.DotNet.Build.Tasks.Feed.dll",
"bin/Microsoft.DotNet.Build.Tasks.Feed/netstandard1.5/*/Microsoft.DotNet.Build.Tasks.Feed.resources.dll",
"bin/Microsoft.DotNet.Build.Tasks.Feed/net45/Microsoft.DotNet.Build.Tasks.Feed.dll",
"bin/Microsoft.DotNet.Build.Tasks.Feed/net45/*/Microsoft.DotNet.Build.Tasks.Feed.resources.dll",
"bin/Microsoft.DotNet.Build.Tasks.Feed/net461/Microsoft.DotNet.Build.Tasks.Feed.dll",
"bin/Microsoft.DotNet.Build.Tasks.Feed/net461/*/Microsoft.DotNet.Build.Tasks.Feed.resources.dll",
"bin/Microsoft.DotNet.Build.Tasks.Packaging/net46/Microsoft.DotNet.Build.Tasks.Packaging.dll",
"bin/Microsoft.DotNet.Build.Tasks.Packaging/netcoreapp2.0/Microsoft.DotNet.Build.Tasks.Packaging.dll",
"bin/Microsoft.DotNet.Helix.Client/netstandard1.4/Microsoft.DotNet.Helix.Client.dll",
"bin/Microsoft.DotNet.Helix.Client/net45/Microsoft.DotNet.Helix.Client.dll",
"bin/Microsoft.DotNet.Helix.Client/net461/Microsoft.DotNet.Helix.Client.dll",
"bin/Microsoft.DotNet.Helix.Sdk/netstandard2.0/Microsoft.DotNet.Helix.Sdk.dll",
"bin/Microsoft.DotNet.Helix.Sdk/net45/Microsoft.DotNet.Helix.Sdk.dll",
"bin/Microsoft.DotNet.Helix.Sdk/net461/Microsoft.DotNet.Helix.Sdk.dll",
"bin/Microsoft.DotNet.SignTool/net461/Microsoft.DotNet.SignTool.exe",
"bin/Microsoft.DotNet.SignTool/netcoreapp2.0/Microsoft.DotNet.SignTool.dll",
"bin/Microsoft.DotNet.SignTool.Tests/netcoreapp2.0/Microsoft.DotNet.SignTool.Tests.dll"
"bin/Microsoft.DotNet.SignTool.Tests/netcoreapp2.0/Microsoft.DotNet.SignTool.Tests.dll",
"bin/Microsoft.DotNet.Arcade.Sdk/net461/Microsoft.DotNet.Arcade.Sdk.dll",
"bin/Microsoft.DotNet.Arcade.Sdk/netcoreapp2.0/Microsoft.DotNet.Arcade.Sdk.dll"
]
},
{
Expand All @@ -29,7 +31,9 @@
],
"exclude": [
"Microsoft.Azure.KeyVault.Core.dll",
"Microsoft.Build.dll",
"Microsoft.Build.Framework.dll",
"Microsoft.Build.Tasks.Core.dll",
"Microsoft.Build.Utilities.Core.dll",
"Microsoft.CSharp.dll",
"Microsoft.Data.Edm.dll",
Expand All @@ -39,6 +43,8 @@
"Microsoft.DiaSymReader.PortablePdb.dll",
"Microsoft.DotNet.VersionTools.dll",
"Microsoft.Rest.ClientRuntime.dll",
"Microsoft.VisualStudio.Setup.Configuration.Interop.dll",
"Microsoft.Win32.Primitives.dll",
"Microsoft.WindowsAzure.Storage.dll",
"Newtonsoft.Json.dll",
"NuGet.Commands.dll",
Expand All @@ -54,18 +60,26 @@
"NuGet.Protocol.dll",
"NuGet.Versioning.dll",
"SleetLib.dll",
"System.AppContext.dll",
"System.Buffers.dll",
"System.Collections.Concurrent.dll",
"System.Collections.Immutable.dll",
"System.Collections.NonGeneric.dll",
"System.Console.dll",
"System.Diagnostics.DiagnosticSource.dll",
"System.Diagnostics.Process.dll",
"System.Diagnostics.TraceSource.dll",
"System.Dynamic.Runtime.dll",
"System.Globalization.Calendars.dll",
"System.IO.Compression.dll",
"System.IO.Compression.ZipFile.dll",
"System.IO.FileSystem.dll",
"System.IO.FileSystem.Primitives.dll",
"System.IO.FileSystem.Watcher.dll",
"System.Linq.dll",
"System.Linq.Expressions.dll",
"System.Net.Http.dll",
"System.Net.Sockets.dll",
"System.ObjectModel.dll",
"System.Reflection.Emit.dll",
"System.Reflection.Emit.ILGeneration.dll",
Expand All @@ -87,11 +101,13 @@
"System.Text.RegularExpressions.dll",
"System.Threading.dll",
"System.Threading.Overlapped.dll",
"System.Threading.Tasks.Dataflow.dll",
"System.Threading.Tasks.Extensions.dll",
"System.Threading.Thread.dll",
"System.Threading.ThreadPool.dll",
"System.Xml.ReaderWriter.dll",
"System.Xml.XDocument.dll",
"System.Xml.XmlDocument.dll"
"System.Xml.XmlDocument.dll",
"vswhere.exe"
]
}
9 changes: 5 additions & 4 deletions eng/Versions.props
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@
<CredentialManagementVersion>1.0.2</CredentialManagementVersion>
<LibGit2SharpVersion>0.25.2</LibGit2SharpVersion>
<log4netVersion>2.0.8</log4netVersion>
<MicrosoftBuildTasksCoreVersion>14.3.0</MicrosoftBuildTasksCoreVersion>
<MicrosoftBuildVersion>14.3.0</MicrosoftBuildVersion>
<SystemNetHttpVersion>4.3.3</SystemNetHttpVersion>
<MicrosoftBuildVersion>15.7.179</MicrosoftBuildVersion>
<MicrosoftBuildFrameworkVersion>15.7.179</MicrosoftBuildFrameworkVersion>
<MicrosoftBuildTasksCoreVersion>15.7.179</MicrosoftBuildTasksCoreVersion>
<MicrosoftBuildUtilitiesCoreVersion>15.7.179</MicrosoftBuildUtilitiesCoreVersion>
<MicrosoftDotNetVersionToolsVersion>2.2.0-preview1-02815-01</MicrosoftDotNetVersionToolsVersion>
<MicrosoftRestClientRuntimeVersion>3.0.3</MicrosoftRestClientRuntimeVersion>
<MicrosoftBuildFrameworkVersion>15.1.548</MicrosoftBuildFrameworkVersion>
<MicrosoftBuildUtilitiesCoreVersion>15.1.548</MicrosoftBuildUtilitiesCoreVersion>
<MicrosoftExtensionsFileSystemGlobbingVersion>2.0.0</MicrosoftExtensionsFileSystemGlobbingVersion>
<MicrosoftNetTestSdkVersion>15.7.2</MicrosoftNetTestSdkVersion>
<MoqVersion>4.8.3</MoqVersion>
Expand Down
4 changes: 2 additions & 2 deletions eng/common/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ function GetBuildCommand() {
}

function InitializeToolset([string] $buildDriver, [string]$buildArgs) {
$toolsetVersion = $GlobalJson.'msbuild-sdks'.'RoslynTools.RepoToolset'
$toolsetVersion = $GlobalJson.'msbuild-sdks'.'Microsoft.DotNet.Arcade.Sdk'
$toolsetLocationFile = Join-Path $ToolsetDir "$toolsetVersion.txt"

if (Test-Path $toolsetLocationFile) {
Expand All @@ -199,7 +199,7 @@ function InitializeToolset([string] $buildDriver, [string]$buildArgs) {

$proj = Join-Path $ToolsetDir "restore.proj"

'<Project Sdk="RoslynTools.RepoToolset"/>' | Set-Content $proj
'<Project Sdk="Microsoft.DotNet.Arcade.Sdk"/>' | Set-Content $proj
& $buildDriver $buildArgs $proj /t:__WriteToolsetLocation /m /nologo /clp:None /warnaserror /bl:$ToolsetRestoreLog /v:$verbosity /p:__ToolsetLocationOutputFile=$toolsetLocationFile

if ($lastExitCode -ne 0) {
Expand Down
6 changes: 3 additions & 3 deletions eng/common/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ function GetDotNetInstallScript {
}

function InitializeToolset {
ReadJson $global_json_file "RoslynTools.RepoToolset"
ReadJson $global_json_file "Microsoft.DotNet.Arcade.Sdk"
local toolset_version=$readjsonvalue
local toolset_location_file="$toolset_dir/$toolset_version.txt"

Expand All @@ -239,7 +239,7 @@ function InitializeToolset {

local proj="$toolset_dir/restore.proj"

echo '<Project Sdk="RoslynTools.RepoToolset"/>' > $proj
echo '<Project Sdk="Microsoft.DotNet.Arcade.Sdk"/>' > $proj
"$build_driver" msbuild $proj /t:__WriteToolsetLocation /m /nologo /clp:None /warnaserror /bl:$toolset_restore_log /v:$verbosity /p:__ToolsetLocationOutputFile=$toolset_location_file
local lastexitcode=$?

Expand Down Expand Up @@ -341,4 +341,4 @@ function Main {
ExitWithExitCode $?
}

Main
Main
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"version": "2.1.300"
},
"msbuild-sdks": {
"RoslynTools.RepoToolset": "1.0.0-beta2-63011-05"
"Microsoft.DotNet.Arcade.Sdk": "1.0.0-bootstrap-1"
}
}
34 changes: 34 additions & 0 deletions src/Microsoft.DotNet.Arcade.Sdk/Microsoft.DotNet.Arcade.Sdk.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<!-- Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -->
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net461;netcoreapp2.0</TargetFrameworks>

This comment was marked as spam.


<ExcludeFromSourceBuild>false</ExcludeFromSourceBuild>

<IsPackable>true</IsPackable>

<Description>Common toolset for repositories</Description>
<PackageTags>Roslyn Build Repository Toolset MSBuild SDK</PackageTags>
<DevelopmentDependency>true</DevelopmentDependency>

<EnableDefaultNoneItems>false</EnableDefaultNoneItems>
<EnableGeneratedPackageContent>false</EnableGeneratedPackageContent>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Build" Version="$(MicrosoftBuildVersion)" Publish="false" />
<PackageReference Include="Microsoft.Build.Tasks.Core" Version="$(MicrosoftBuildTasksCoreVersion)" Publish="false" />
<PackageReference Include="System.Net.Http" Version="$(SystemNetHttpVersion)" />
</ItemGroup>

<ItemGroup>
<None Include="sdk/Sdk.props;sdk/Sdk.targets" Pack="true">
<PackagePath>sdk/%(Filename)%(Extension)</PackagePath>
</None>
<None Include="tools/*.*" Pack="true">
<PackagePath>tools/%(Filename)%(Extension)</PackagePath>
</None>
</ItemGroup>

<Import Project="$(RepoRoot)eng\Sdk.targets" />
</Project>
20 changes: 20 additions & 0 deletions src/Microsoft.DotNet.Arcade.Sdk/sdk/Sdk.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -->
<Project>
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildThisFileFullPath);$(MSBuildAllProjects)</MSBuildAllProjects>
</PropertyGroup>

<PropertyGroup>
<!--
When the bootstrapper script initializes a repo it restores an empty project that imports the toolset SDK.
It invokes WriteToolsetLocation target with __ToolsetLocationOutputFile set to the path where the location of
SDK Build.proj entry point is to be stored. Suppress all other imports for that project.
-->
<_SuppressSdkImports>false</_SuppressSdkImports>
<_SuppressSdkImports Condition="'$(__ToolsetLocationOutputFile)' != ''">true</_SuppressSdkImports>
</PropertyGroup>

<Import Project="..\tools\Settings.props" Condition="!$(_SuppressSdkImports)" />

</Project>
30 changes: 30 additions & 0 deletions src/Microsoft.DotNet.Arcade.Sdk/sdk/Sdk.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -->
<Project>
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildThisFileFullPath);$(MSBuildAllProjects)</MSBuildAllProjects>
</PropertyGroup>

<!--
If a project specifies ExcludeFromSourceBuild=true during a source build suppress all targets and emulate a no-op
(empty common targets like Restore, Build, Pack, etc.).
-->
<PropertyGroup>
<_SuppressAllTargets>false</_SuppressAllTargets>
<_SuppressAllTargets Condition="'$(DotNetBuildFromSource)' == 'true' and '$(ExcludeFromSourceBuild)' == 'true'">true</_SuppressAllTargets>
</PropertyGroup>

<!--
Output the location of the Build.proj so that the build driver can find where it was restored.
Ideally we would have msbuild API to do that for an SDK: https://github.com/Microsoft/msbuild/issues/2992
-->
<Target Name="__WriteToolsetLocation" Outputs="$(__ToolsetLocationOutputFile)" Condition="'$(__ToolsetLocationOutputFile)' != ''">
<WriteLinesToFile File="$(__ToolsetLocationOutputFile)" Lines="$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)..\tools\Build.proj'))" Overwrite="true"/>
<ItemGroup>
<FileWrites Include="$(__ToolsetLocationOutputFile)" />
</ItemGroup>
</Target>

<Import Project="..\tools\Imports.targets" Condition="!$(_SuppressSdkImports) and !$(_SuppressAllTargets)" />
<Import Project="..\tools\Empty.targets" Condition="!$(_SuppressSdkImports) and $(_SuppressAllTargets)"/>
</Project>
Loading