Skip to content
This repository was archived by the owner on May 21, 2019. It is now read-only.

Conversation

@natemcmaster
Copy link
Contributor

We only have two repos left on 'dev' EF and MVC. I'll pin their build.ps1 before we merge this.

This deprecates support for building project.json with KoreBuild.

ASP.NET Push Bot and others added 30 commits June 16, 2016 15:40
Fix _dotnet-test.shade parse error
{
# Install the version of dotnet-cli used to compile
& "$koreBuildFolder\dotnet\dotnet-install.ps1" -Channel $dotnetChannel -Version $dotnetVersion -Architecture x64
InstallSharedRuntime '1.0.0' 'preview'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do none of our tools need 1.0.0 anymore?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few of our tools do, but the 1.0.0-rc4 SDK installs both the 1.0.4 and 1.1.1 runtimes automatically

}
InstallSharedRuntime $env:KOREBUILD_DOTNET_SHARED_RUNTIME_VERSION $channel
}
# TODO restore installing pre-release versions of sharedfx when we upgrade to .NET Core 2.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No TODOs or commented out code.


if (!(Test-Path "$koreBuildFolder\Sake"))
# We still nuget because dotnet doesn't have support for pushing packages
# TODO remove. dotnet nuget push now exists
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's file a bug and remove the todo.

install_shared_runtime $KOREBUILD_DOTNET_SHARED_RUNTIME_VERSION $channel
fi
$koreBuildFolder/dotnet/dotnet-install.sh --channel $KOREBUILD_DOTNET_CHANNEL --version $KOREBUILD_DOTNET_VERSION
# TODO restore installing pre-release versions of sharedfx when we upgrade to .NET Core 2.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

<add key="aspnetcore-tools" value="https://dotnet.myget.org/F/aspnetcore-tools/api/v3/index.json" />
</packageSources>
</configuration>
</configuration>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Undo

.PARAMETER NoPath
By default this script will set environment variable PATH for the current process to the binaries folder inside installation folder.
If set it will display binaries location but not set any environment variable.
.PARAMETER Verbose
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems unrelated to the msbuild conversion. Make this a separate commit

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes reflect updates and bug fixes to the dotnet-install.ps1 script in https://github.com/dotnet/cli. The layout of assets on dotnetcli.azureedge.net is slightly different for the MSBuild SDK than it was for project.json SDK.

-->

<PropertyGroup>
<!-- TODO if VS Test doesn't make minimal output the default log setting, we can set that here. cref https://github.com/Microsoft/vstest/issues/301 -->
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fixed. Remove

###################################################################
-->
<Target Name="PackageProjects">
<!-- TODO consider using GeneratePackageOnBuild or calling Pack on the solution.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tracking issue + Remove todo

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


<Target Name="Rebuild" DependsOnTargets="RebuildSolutions" />

<!-- TODO implement. See https://github.com/aspnet/BuildTools/issues/162 -->
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the target since it's not doing anything


$env:KOREBUILD_FOLDER=$koreBuildFolder
&"$koreBuildFolder\Sake\0.2.2\tools\Sake.exe" -I $koreBuildFolder\shade -f $makeFilePath @args
exec dotnet build `@"$msBuildResponseFile"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a trailing new line to these files. There's a bunch missing these

@natemcmaster
Copy link
Contributor Author

Will do this later. Too many people still using 'dev' branch.

@natemcmaster
Copy link
Contributor Author

MVC merged sooner than expected. Now all Universe repos are on feature/msbuild. Let's move this to dev.

@natemcmaster
Copy link
Contributor Author

🆙 📅 added changes per PR feedback

@natemcmaster
Copy link
Contributor Author

Before we merge this, I've tagged the current version of 'dev' as "legacy-build". I'm updating any other aspnet repos to use this so that merging this MSBuild work shouldn't break them.

This intentionally means that anyone using "legacy-build" won't receive updates as we're no longer updating our project.json scripts.

Copy link
Contributor

@analogrelay analogrelay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@natemcmaster natemcmaster merged commit 861a1e9 into dev Mar 2, 2017
natemcmaster pushed a commit to aspnet/Universe that referenced this pull request Mar 2, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants