mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2026-02-07 08:34:07 +00:00
Fixup MSBuild conversion (#721)
* Replace makefile.shade with repo.targets * Remove web site projects as these are not yet supported by MSBuild for .NET Core cref https://github.com/Microsoft/msbuild/issues/1767
This commit is contained in:
committed by
Steve Sanderson
parent
76ae9aa58f
commit
821ad85e41
@@ -56,50 +56,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ReactReduxSpa", "templates\
|
|||||||
EndProject
|
EndProject
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WebApplicationBasic", "templates\WebApplicationBasic\WebApplicationBasic.csproj", "{86911E07-C733-4C18-B49F-9A007A651246}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WebApplicationBasic", "templates\WebApplicationBasic\WebApplicationBasic.csproj", "{86911E07-C733-4C18-B49F-9A007A651246}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "package-builder", "templates\package-builder\", "{1389D9BF-402E-4639-8573-8340EFB8FBD0}"
|
|
||||||
ProjectSection(WebsiteProperties) = preProject
|
|
||||||
TargetFrameworkMoniker = ".NETFramework,Version%3Dv4.0"
|
|
||||||
Debug.AspNetCompiler.VirtualPath = "/localhost_57758"
|
|
||||||
Debug.AspNetCompiler.PhysicalPath = "templates\package-builder\"
|
|
||||||
Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\localhost_57758\"
|
|
||||||
Debug.AspNetCompiler.Updateable = "true"
|
|
||||||
Debug.AspNetCompiler.ForceOverwrite = "true"
|
|
||||||
Debug.AspNetCompiler.FixedNames = "false"
|
|
||||||
Debug.AspNetCompiler.Debug = "True"
|
|
||||||
Release.AspNetCompiler.VirtualPath = "/localhost_57758"
|
|
||||||
Release.AspNetCompiler.PhysicalPath = "templates\package-builder\"
|
|
||||||
Release.AspNetCompiler.TargetPath = "PrecompiledWeb\localhost_57758\"
|
|
||||||
Release.AspNetCompiler.Updateable = "true"
|
|
||||||
Release.AspNetCompiler.ForceOverwrite = "true"
|
|
||||||
Release.AspNetCompiler.FixedNames = "false"
|
|
||||||
Release.AspNetCompiler.Debug = "False"
|
|
||||||
VWDPort = "57758"
|
|
||||||
SlnRelativePath = "templates\package-builder\"
|
|
||||||
EndProjectSection
|
|
||||||
EndProject
|
|
||||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{BDE761D9-8E1C-4FB1-BB86-110393C59176}"
|
|
||||||
EndProject
|
|
||||||
Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "test", "test\", "{A01B46C2-53D8-499D-8CDE-68E3E7B52804}"
|
|
||||||
ProjectSection(WebsiteProperties) = preProject
|
|
||||||
TargetFrameworkMoniker = ".NETFramework,Version%3Dv4.0"
|
|
||||||
Debug.AspNetCompiler.VirtualPath = "/localhost_54430"
|
|
||||||
Debug.AspNetCompiler.PhysicalPath = "test\"
|
|
||||||
Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\localhost_54430\"
|
|
||||||
Debug.AspNetCompiler.Updateable = "true"
|
|
||||||
Debug.AspNetCompiler.ForceOverwrite = "true"
|
|
||||||
Debug.AspNetCompiler.FixedNames = "false"
|
|
||||||
Debug.AspNetCompiler.Debug = "True"
|
|
||||||
Release.AspNetCompiler.VirtualPath = "/localhost_54430"
|
|
||||||
Release.AspNetCompiler.PhysicalPath = "test\"
|
|
||||||
Release.AspNetCompiler.TargetPath = "PrecompiledWeb\localhost_54430\"
|
|
||||||
Release.AspNetCompiler.Updateable = "true"
|
|
||||||
Release.AspNetCompiler.ForceOverwrite = "true"
|
|
||||||
Release.AspNetCompiler.FixedNames = "false"
|
|
||||||
Release.AspNetCompiler.Debug = "False"
|
|
||||||
VWDPort = "54430"
|
|
||||||
SlnRelativePath = "test\"
|
|
||||||
EndProjectSection
|
|
||||||
EndProject
|
|
||||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{E415FE14-13B0-469F-836D-95059E6BAA6E}"
|
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{E415FE14-13B0-469F-836D-95059E6BAA6E}"
|
||||||
ProjectSection(SolutionItems) = preProject
|
ProjectSection(SolutionItems) = preProject
|
||||||
src\build\common.props = src\build\common.props
|
src\build\common.props = src\build\common.props
|
||||||
@@ -180,14 +136,6 @@ Global
|
|||||||
{86911E07-C733-4C18-B49F-9A007A651246}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{86911E07-C733-4C18-B49F-9A007A651246}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{86911E07-C733-4C18-B49F-9A007A651246}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{86911E07-C733-4C18-B49F-9A007A651246}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{86911E07-C733-4C18-B49F-9A007A651246}.Release|Any CPU.Build.0 = Release|Any CPU
|
{86911E07-C733-4C18-B49F-9A007A651246}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
{1389D9BF-402E-4639-8573-8340EFB8FBD0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{1389D9BF-402E-4639-8573-8340EFB8FBD0}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{1389D9BF-402E-4639-8573-8340EFB8FBD0}.Release|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{1389D9BF-402E-4639-8573-8340EFB8FBD0}.Release|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{A01B46C2-53D8-499D-8CDE-68E3E7B52804}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{A01B46C2-53D8-499D-8CDE-68E3E7B52804}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{A01B46C2-53D8-499D-8CDE-68E3E7B52804}.Release|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{A01B46C2-53D8-499D-8CDE-68E3E7B52804}.Release|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
@@ -213,8 +161,6 @@ Global
|
|||||||
{868A630E-C61B-4807-B7A8-7EB53BE1C28A} = {1598B415-73F1-4B37-B3B4-0A10677ABB2D}
|
{868A630E-C61B-4807-B7A8-7EB53BE1C28A} = {1598B415-73F1-4B37-B3B4-0A10677ABB2D}
|
||||||
{9D4D15A1-A25B-44EC-AB63-F1CE9986712E} = {1598B415-73F1-4B37-B3B4-0A10677ABB2D}
|
{9D4D15A1-A25B-44EC-AB63-F1CE9986712E} = {1598B415-73F1-4B37-B3B4-0A10677ABB2D}
|
||||||
{86911E07-C733-4C18-B49F-9A007A651246} = {1598B415-73F1-4B37-B3B4-0A10677ABB2D}
|
{86911E07-C733-4C18-B49F-9A007A651246} = {1598B415-73F1-4B37-B3B4-0A10677ABB2D}
|
||||||
{1389D9BF-402E-4639-8573-8340EFB8FBD0} = {1598B415-73F1-4B37-B3B4-0A10677ABB2D}
|
|
||||||
{A01B46C2-53D8-499D-8CDE-68E3E7B52804} = {BDE761D9-8E1C-4FB1-BB86-110393C59176}
|
|
||||||
{E415FE14-13B0-469F-836D-95059E6BAA6E} = {27304DDE-AFB2-4F8B-B765-E3E2F11E886C}
|
{E415FE14-13B0-469F-836D-95059E6BAA6E} = {27304DDE-AFB2-4F8B-B765-E3E2F11E886C}
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
EndGlobal
|
EndGlobal
|
||||||
|
|||||||
16
build.ps1
16
build.ps1
@@ -1,6 +1,6 @@
|
|||||||
$ErrorActionPreference = "Stop"
|
$ErrorActionPreference = "Stop"
|
||||||
|
|
||||||
function DownloadWithRetry([string] $url, [string] $downloadLocation, [int] $retries)
|
function DownloadWithRetry([string] $url, [string] $downloadLocation, [int] $retries)
|
||||||
{
|
{
|
||||||
while($true)
|
while($true)
|
||||||
{
|
{
|
||||||
@@ -19,7 +19,7 @@ function DownloadWithRetry([string] $url, [string] $downloadLocation, [int] $ret
|
|||||||
Start-Sleep -Seconds 10
|
Start-Sleep -Seconds 10
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$exception = $_.Exception
|
$exception = $_.Exception
|
||||||
throw $exception
|
throw $exception
|
||||||
@@ -33,7 +33,7 @@ cd $PSScriptRoot
|
|||||||
$repoFolder = $PSScriptRoot
|
$repoFolder = $PSScriptRoot
|
||||||
$env:REPO_FOLDER = $repoFolder
|
$env:REPO_FOLDER = $repoFolder
|
||||||
|
|
||||||
$koreBuildZip="https://github.com/aspnet/KoreBuild/archive/dev.zip"
|
$koreBuildZip="https://github.com/aspnet/KoreBuild/archive/feature/msbuild.zip"
|
||||||
if ($env:KOREBUILD_ZIP)
|
if ($env:KOREBUILD_ZIP)
|
||||||
{
|
{
|
||||||
$koreBuildZip=$env:KOREBUILD_ZIP
|
$koreBuildZip=$env:KOREBUILD_ZIP
|
||||||
@@ -43,18 +43,18 @@ $buildFolder = ".build"
|
|||||||
$buildFile="$buildFolder\KoreBuild.ps1"
|
$buildFile="$buildFolder\KoreBuild.ps1"
|
||||||
|
|
||||||
if (!(Test-Path $buildFolder)) {
|
if (!(Test-Path $buildFolder)) {
|
||||||
Write-Host "Downloading KoreBuild from $koreBuildZip"
|
Write-Host "Downloading KoreBuild from $koreBuildZip"
|
||||||
|
|
||||||
$tempFolder=$env:TEMP + "\KoreBuild-" + [guid]::NewGuid()
|
$tempFolder=$env:TEMP + "\KoreBuild-" + [guid]::NewGuid()
|
||||||
New-Item -Path "$tempFolder" -Type directory | Out-Null
|
New-Item -Path "$tempFolder" -Type directory | Out-Null
|
||||||
|
|
||||||
$localZipFile="$tempFolder\korebuild.zip"
|
$localZipFile="$tempFolder\korebuild.zip"
|
||||||
|
|
||||||
DownloadWithRetry -url $koreBuildZip -downloadLocation $localZipFile -retries 6
|
DownloadWithRetry -url $koreBuildZip -downloadLocation $localZipFile -retries 6
|
||||||
|
|
||||||
Add-Type -AssemblyName System.IO.Compression.FileSystem
|
Add-Type -AssemblyName System.IO.Compression.FileSystem
|
||||||
[System.IO.Compression.ZipFile]::ExtractToDirectory($localZipFile, $tempFolder)
|
[System.IO.Compression.ZipFile]::ExtractToDirectory($localZipFile, $tempFolder)
|
||||||
|
|
||||||
New-Item -Path "$buildFolder" -Type directory | Out-Null
|
New-Item -Path "$buildFolder" -Type directory | Out-Null
|
||||||
copy-item "$tempFolder\**\build\*" $buildFolder -Recurse
|
copy-item "$tempFolder\**\build\*" $buildFolder -Recurse
|
||||||
|
|
||||||
@@ -64,4 +64,4 @@ if (!(Test-Path $buildFolder)) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&"$buildFile" $args
|
&"$buildFile" $args
|
||||||
|
|||||||
22
build.sh
22
build.sh
@@ -2,7 +2,7 @@
|
|||||||
repoFolder="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
repoFolder="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
cd $repoFolder
|
cd $repoFolder
|
||||||
|
|
||||||
koreBuildZip="https://github.com/aspnet/KoreBuild/archive/dev.zip"
|
koreBuildZip="https://github.com/aspnet/KoreBuild/archive/feature/msbuild.zip"
|
||||||
if [ ! -z $KOREBUILD_ZIP ]; then
|
if [ ! -z $KOREBUILD_ZIP ]; then
|
||||||
koreBuildZip=$KOREBUILD_ZIP
|
koreBuildZip=$KOREBUILD_ZIP
|
||||||
fi
|
fi
|
||||||
@@ -12,12 +12,12 @@ buildFile="$buildFolder/KoreBuild.sh"
|
|||||||
|
|
||||||
if test ! -d $buildFolder; then
|
if test ! -d $buildFolder; then
|
||||||
echo "Downloading KoreBuild from $koreBuildZip"
|
echo "Downloading KoreBuild from $koreBuildZip"
|
||||||
|
|
||||||
tempFolder="/tmp/KoreBuild-$(uuidgen)"
|
tempFolder="/tmp/KoreBuild-$(uuidgen)"
|
||||||
mkdir $tempFolder
|
mkdir $tempFolder
|
||||||
|
|
||||||
localZipFile="$tempFolder/korebuild.zip"
|
localZipFile="$tempFolder/korebuild.zip"
|
||||||
|
|
||||||
retries=6
|
retries=6
|
||||||
until (wget -O $localZipFile $koreBuildZip 2>/dev/null || curl -o $localZipFile --location $koreBuildZip 2>/dev/null)
|
until (wget -O $localZipFile $koreBuildZip 2>/dev/null || curl -o $localZipFile --location $koreBuildZip 2>/dev/null)
|
||||||
do
|
do
|
||||||
@@ -29,18 +29,18 @@ if test ! -d $buildFolder; then
|
|||||||
echo "Waiting 10 seconds before retrying. Retries left: $retries"
|
echo "Waiting 10 seconds before retrying. Retries left: $retries"
|
||||||
sleep 10s
|
sleep 10s
|
||||||
done
|
done
|
||||||
|
|
||||||
unzip -q -d $tempFolder $localZipFile
|
unzip -q -d $tempFolder $localZipFile
|
||||||
|
|
||||||
mkdir $buildFolder
|
mkdir $buildFolder
|
||||||
cp -r $tempFolder/**/build/** $buildFolder
|
cp -r $tempFolder/**/build/** $buildFolder
|
||||||
|
|
||||||
chmod +x $buildFile
|
chmod +x $buildFile
|
||||||
|
|
||||||
# Cleanup
|
# Cleanup
|
||||||
if test ! -d $tempFolder; then
|
if test ! -d $tempFolder; then
|
||||||
rm -rf $tempFolder
|
rm -rf $tempFolder
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$buildFile -r $repoFolder "$@"
|
$buildFile -r $repoFolder "$@"
|
||||||
|
|||||||
12
build/repo.targets
Normal file
12
build/repo.targets
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
<Project>
|
||||||
|
<Target Name="NpmRestore" AfterTargets="Restore" Condition="'$(PreflightRestore)' != 'true'">
|
||||||
|
<ItemGroup>
|
||||||
|
<NpmModules Include="$(RepositoryRoot)**\package.json"
|
||||||
|
Exclude="$(RepositoryRoot)**\node_modules\**\*" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<Message Text="Restoring NPM modules for: %0A - @(NpmModules -> '%(FullPath)','%0A - ')" Importance="high" />
|
||||||
|
|
||||||
|
<Exec Command="npm install" WorkingDirectory="%(NpmModules.RootDir)%(Directory)" />
|
||||||
|
</Target>
|
||||||
|
</Project>
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
|
|
||||||
var VERSION='0.1'
|
|
||||||
var FULL_VERSION='0.1'
|
|
||||||
var AUTHORS='Microsoft Open Technologies, Inc.'
|
|
||||||
var TEST_PROJECT_GLOB='templates/*/project.json'
|
|
||||||
var SAMPLES_PROJECT_GLOB='samples/misc/*/project.json'
|
|
||||||
|
|
||||||
@{
|
|
||||||
// The build quality values are set in each of the project.json files
|
|
||||||
BuildQuality = "";
|
|
||||||
}
|
|
||||||
|
|
||||||
use-standard-lifecycle
|
|
||||||
k-standard-goals
|
|
||||||
Reference in New Issue
Block a user