Skip to content

Commit

Permalink
Revert "Undo consume Roslyn from new location."
Browse files Browse the repository at this point in the history
  • Loading branch information
rainersigwald authored Nov 29, 2016
1 parent 7633e84 commit 90663e1
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/Shared/UnitTests/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<property name="SDK35ToolsPath" value="$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v8.0A\WinSDK-NetFx35Tools-x86@InstallationFolder))" />
<property name="SDK40ToolsPath" value="$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\NETFXSDK\4.6.1\WinSDK-NetFx40Tools-x86@InstallationFolder)" />
<property name="WindowsSDK80Path" value="$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v8.1@InstallationFolder)" />
<property name="RoslynTargetsPath" value="$([MSBuild]::GetToolsDirectory32())" />
<property name="RoslynTargetsPath" value="$([MSBuild]::GetToolsDirectory32())\Roslyn" />
</toolset>
</msbuildToolsets>
</configuration>
4 changes: 3 additions & 1 deletion src/XMakeBuildEngine/Definition/ToolsetLocalReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ protected override IEnumerable<ToolsetPropertyDefinition> ToolsVersions
protected override IEnumerable<ToolsetPropertyDefinition> GetPropertyDefinitions(string toolsVersion)
{
yield return new ToolsetPropertyDefinition(MSBuildConstants.ToolsPath, BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory, _sourceLocation);
yield return new ToolsetPropertyDefinition("RoslynTargetsPath", BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory, _sourceLocation);
yield return new ToolsetPropertyDefinition("RoslynTargetsPath",
System.IO.Path.Combine(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory, "Roslyn"),
_sourceLocation);
}

protected override IEnumerable<ToolsetPropertyDefinition> GetSubToolsetPropertyDefinitions(string toolsVersion, string subToolsetVersion)
Expand Down
2 changes: 1 addition & 1 deletion src/XMakeCommandLine/app.amd64.config
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
<property name="MSBuildExtensionsPath" value="$(VsInstallRoot)\MSBuild" />
<property name="MSBuildExtensionsPath32" value="$(VsInstallRoot)\MSBuild" />

<property name="RoslynTargetsPath" value="$([MSBuild]::GetToolsDirectory32())" />
<property name="RoslynTargetsPath" value="$([MSBuild]::GetToolsDirectory32())\Roslyn" />

<!-- VC Specific Paths -->
<property name="VCTargetsPath" value="$([MSBuild]::ValueOrDefault('$(VCTargetsPath)','$(VsInstallRoot)\Common7\IDE\VC\VCTargets\'))" />
Expand Down
2 changes: 1 addition & 1 deletion src/XMakeCommandLine/app.config
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
<property name="MSBuildExtensionsPath" value="$(VsInstallRoot)\MSBuild" />
<property name="MSBuildExtensionsPath32" value="$(VsInstallRoot)\MSBuild" />

<property name="RoslynTargetsPath" value="$([MSBuild]::GetToolsDirectory32())" />
<property name="RoslynTargetsPath" value="$([MSBuild]::GetToolsDirectory32())\Roslyn" />

<!-- VC Specific Paths -->
<property name="VCTargetsPath" value="$([MSBuild]::ValueOrDefault('$(VCTargetsPath)','$(VsInstallRoot)\Common7\IDE\VC\VCTargets\'))" />
Expand Down
16 changes: 10 additions & 6 deletions targets/DeployDependencies.proj
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
</ItemGroup>

<Copy SourceFiles="@(CompilerToolsFiles)"
DestinationFolder="$(DeploymentDir)\"
DestinationFolder="$(DeploymentDir)\Roslyn"
SkipUnchangedFiles="true" />

<Copy SourceFiles="@(CompilerToolsFiles)"
DestinationFolder="$(TestDeploymentDir)\"
DestinationFolder="$(TestDeploymentDir)\Roslyn"
SkipUnchangedFiles="true" />
</Target>

Expand Down Expand Up @@ -81,6 +81,10 @@
<!--At build time, we target netstandard to be runnable on many runtimes.
To get a set of runnable bits, we need to deploy a specific one. On the xplat branch we are testing the .net core runtime platform, so we target netcoreapp -->
<NuGetTargetMoniker Condition="'$(NetCoreBuild)' == 'true'">.NETCoreApp,Version=v1.0</NuGetTargetMoniker>

<RuntimeProjectJson>$(MSBuildThisFileDirectory)runtimeDependencies\project.json</RuntimeProjectJson>
<RuntimeProjectLockJson>$(MSBuildThisFileDirectory)runtimeDependencies\project.lock.json</RuntimeProjectLockJson>

<NuGetRuntimeIdentifier>$(RuntimeSystem)-$(RuntimeArchitecture)</NuGetRuntimeIdentifier>
</PropertyGroup>

Expand All @@ -92,13 +96,13 @@
</RuntimeProjectJson>
<RuntimeProjectJson Include="$(MSBuildThisFileDirectory)roslyn\project.json">
<LockFile>$(MSBuildThisFileDirectory)roslyn\project.lock.json</LockFile>
<DestinationFolder>$(DeploymentDir)</DestinationFolder>
<TestDeploymentDir>$(TestDeploymentDir)</TestDeploymentDir>
<DestinationFolder>$(DeploymentDir)\Roslyn</DestinationFolder>
<TestDeploymentDir>$(TestDeploymentDir)\Roslyn</TestDeploymentDir>
</RuntimeProjectJson>
</ItemGroup>

<Target Name="RestoreRuntimePackages"
Inputs="$(DnuToolPath);@(RuntimeProjectJson)"
Inputs="$(DnuToolPath);$(RuntimeProjectJson)"
Outputs="@(RuntimeProjectJson->'%(LockFile)')">
<Exec Command="$(DnuRestoreCommand) &quot;%(RuntimeProjectJson.FullPath)&quot;" StandardOutputImportance="Low" />

Expand All @@ -109,7 +113,7 @@

<Target Name="DeployRuntime"
DependsOnTargets="RestoreRuntimePackages"
Outputs="%(RuntimeProjectJson.LockFile).IntentionallyDoesNotExistSoThisAlwaysRuns">
Outputs="%(RuntimeProjectJson.DestinationFolder)\dummy">
<PrereleaseResolveNuGetPackageAssets AllowFallbackOnTargetSelection="false"
IncludeFrameworkReferences="false"
NuGetPackagesDirectory="$(PackagesDir)"
Expand Down

0 comments on commit 90663e1

Please sign in to comment.