January patch fixes

This commit is contained in:
John Luo 2017-12-14 16:10:08 -08:00 committed by Nate McMaster
parent 8a30fc50ba
commit 07d014ab32
5 changed files with 55 additions and 9 deletions

View File

@ -148,7 +148,40 @@
Properties="$(_ComposeStoreProps)" />
</Target>
<Target Name="_BuildHostingDeps" >
<PropertyGroup>
<HostingStartupWorkDir>$(_WorkRoot)HostingStartup\</HostingStartupWorkDir>
<_HostingStartupProps>DepsOutputPath=$(_DepsOutputDirectory)</_HostingStartupProps>
<_HostingStartupProps>$(_HostingStartupProps);DotNetRestoreSourcesPropsPath=$(GeneratedRestoreSourcesPropsPath)</_HostingStartupProps>
<_HostingStartupProps>$(_HostingStartupProps);RuntimeFrameworkVersion=$(MicrosoftNETCoreApp20PackageVersion)</_HostingStartupProps>
<_HostingStartupProps>$(_HostingStartupProps);HostingStartupPackageName=$(HostingStartupPackageName)</_HostingStartupProps>
<_HostingStartupProps>$(_HostingStartupProps);HostingStartupPackageVersion=$(HostingStartupPackageVersion)</_HostingStartupProps>
</PropertyGroup>
<ItemGroup>
<HostingStartupFiles Include="$(_TemplatesDirectory)HostingStartup\**\*" />
</ItemGroup>
<!-- Clear working directory -->
<RemoveDir Directories="$(HostingStartupWorkDir)bin" />
<RemoveDir Directories="$(HostingStartupWorkDir)obj" />
<!-- Copy build assets -->
<Copy SourceFiles="@(HostingStartupFiles)" DestinationFolder="$(HostingStartupWorkDir)\%(RecursiveDir)" />
<!--- Workaround for https://github.com/dotnet/sdk/issues/1779 -->
<MSBuild Projects="$(HostingStartupWorkDir)HostingStartup.csproj"
Targets="Restore"
Properties="$(_HostingStartupProps);_SolutionTarget=Restore" />
<!--- MSBuild caches things if you run inproc so have to use Exec -->
<MSBuild Projects="$(HostingStartupWorkDir)HostingStartup.csproj"
Targets="Build;CollectDeps"
Properties="$(_HostingStartupProps)" />
</Target>
<Target Name="BuildHostingDeps" DependsOnTargets="ResolveRepoInfo">
<!-- Generate RS.Reference project -->
<RepoTasks.ResolveHostingStartupPackages
BuildArtifacts="@(ArtifactInfo)"
@ -156,10 +189,10 @@
<Output TaskParameter="HostingStartupArtifacts" ItemName="HostingStartupArtifacts" />
</RepoTasks.ResolveHostingStartupPackages>
<!--- MSBuild caches things if you run inproc so have to use Exec -->
<MSBuild Projects="$(_TemplatesDirectory)HostingStartup/HostingStartup.csproj"
Targets="Restore;Rebuild;CollectDeps"
Properties="DepsOutputPath=$(_DepsOutputDirectory);HostingStartupPackageName=%(HostingStartupArtifacts.PackageId);HostingStartupPackageVersion=%(HostingStartupArtifacts.Version);RuntimeFrameworkVersion=$(MicrosoftNETCoreApp20PackageVersion)" />
<MSBuild
Projects="$(MSBuildProjectFullPath)"
Targets="_BuildHostingDeps"
Properties="HostingStartupPackageName=%(HostingStartupArtifacts.PackageId);HostingStartupPackageVersion=%(HostingStartupArtifacts.Version)" />
<ItemGroup>
<DepsFiles Include="$(_DepsOutputDirectory)**\*.deps.json" />

View File

@ -304,8 +304,8 @@
<RHStoreDirectories Include="$(RHInstallerInstallRoot)store" />
<GenericStoreDirectories Include="$(GenericInstallerInstallRoot)additionalDeps" />
<GenericStoreDirectories Include="$(GenericInstallerInstallRoot)store" />
<RSDependencies Include="$(RSInstallerName)-2.0.0">
<Version>2.0.0</Version>
<RSDependencies Include="$(RSInstallerName)-$(RuntimeStoreInstallerDependencyVersion)">
<Version>$(RuntimeStoreInstallerDependencyVersion)</Version>
</RSDependencies>
<HostingDependencies Include="$(RSInstallerName)-$(PackageVersion)">
<Version>$(PackageVersion)</Version>
@ -409,6 +409,7 @@
<ItemGroup>
<DebConfigItems Include="DOTNET_VERSION" Replacement="$(DotnetVersion)" />
<DebConfigItems Include="DEB_VERSION" Replacement="$(DebVersion)" />
<DebConfigItems Include="RS_DEP_VERSION" Replacement="$(RsDepVersion)" />
</ItemGroup>
<!-- Update versions -->
@ -464,11 +465,11 @@
<MSBuild
Projects="$(MSBuildProjectFullPath)"
Targets="_GenerateDeb"
Properties="$(CommonRSArguments);RSArchive=$(TimestampRSArchive);DebVersion=$(Version)" />
Properties="$(CommonRSArguments);RSArchive=$(TimestampRSArchive);DebVersion=$(Version);RsDepVersion=$(RuntimeStoreInstallerDependencyVersion)" />
<MSBuild
Projects="$(MSBuildProjectFullPath)"
Targets="_GenerateDeb"
Properties="$(CommonRSArguments);RSArchive=$(TimestampFreeLinuxRSArchive);DebVersion=$(PackageVersionNoTimestamp)" />
Properties="$(CommonRSArguments);RSArchive=$(TimestampFreeLinuxRSArchive);DebVersion=$(PackageVersionNoTimestamp);RsDepVersion=$(RuntimeStoreInstallerDependencyVersion)" />
<MSBuild
Projects="$(MSBuildProjectFullPath)"
Targets="_GenerateDeb"

View File

@ -29,6 +29,6 @@
},
"debian_dependencies": {
"aspnetcore-store-2.0.0": {}
"aspnetcore-store-RS_DEP_VERSION": {}
}
}

View File

@ -1,8 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="$(DotNetRestoreSourcePropsPath)" Condition="'$(DotNetRestoreSourcePropsPath)' != ''"/>
<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
<OutputType>Exe</OutputType>
<RestoreSources>$(DotNetRestoreSources)</RestoreSources>
<RestoreSources Condition="'$(DotNetBuildOffline)' != 'true' AND '$(AspNetUniverseBuildOffline)' != 'true' ">
$(RestoreSources);
https://dotnet.myget.org/F/aspnetcore-tools/api/v3/index.json;
</RestoreSources>
<RestoreSources Condition="'$(DotNetBuildOffline)' != 'true'">
$(RestoreSources);
https://api.nuget.org/v3/index.json;
</RestoreSources>
</PropertyGroup>
<ItemGroup>

View File

@ -1,5 +1,6 @@
<Project>
<PropertyGroup>
<RuntimeStoreInstallerDependencyVersion>2.0.3</RuntimeStoreInstallerDependencyVersion>
<VersionPrefix>2.0.5</VersionPrefix>
<VersionSuffix>rtm</VersionSuffix>
<PackageVersion Condition="'$(IsFinalBuild)' == 'true' AND '$(VersionSuffix)' == 'rtm' ">$(VersionPrefix)</PackageVersion>