From cfba7c44927a763adf0b6a2800be88736bc57c63 Mon Sep 17 00:00:00 2001 From: Daniel Lo Nigro Date: Fri, 27 Feb 2015 22:41:57 -0800 Subject: [PATCH] Add ASP.NET 5 project to build script --- build.proj | 76 ++++++++++++++++++++++----- dev-build-push.bat | 6 ++- dev-build-vs2015.bat | 3 -- dev-build.bat | 6 ++- release-build-push.bat | 6 ++- release-build.bat | 7 ++- src/React.AspNet5/React.AspNet5.kproj | 2 +- src/React.AspNet5/project.json | 22 +++++--- src/React.Sample.Mvc6/project.json | 2 +- src/React.VS2015.sln | 3 +- src/React.tasks.proj | 63 ++++++++++++++++++++++ src/wrap/React/project.json | 2 +- 12 files changed, 165 insertions(+), 33 deletions(-) delete mode 100644 dev-build-vs2015.bat create mode 100644 src/React.tasks.proj diff --git a/build.proj b/build.proj index 448d2cfd5..5dbebe77b 100644 --- a/build.proj +++ b/build.proj @@ -10,13 +10,18 @@ of patent rights can be found in the PATENTS file in the same directory. 1 - 3 - 1 + 4 + 0 0 http://reactjs.net/packages/ $(MSBuildProjectDirectory)\tools\MSBuildTasks - src\React.sln output + + + false + true + src\React.VS2015.sln + src\React.sln @@ -28,14 +33,12 @@ of patent rights can be found in the PATENTS file in the same directory. + + - - - + + - + + $(Build) + - $(Build)-dev-$(Date) + $(Build)-dev-$(Date) + + AssemblyFileVersion="$(Major).$(Minor).$(FullBuild).$(Revision)" + AssemblyInformationalVersion="$(Major).$(Minor).$(FullBuild)" + /> + + + + + + + + + + + + + + + + @@ -98,6 +138,14 @@ of patent rights can be found in the PATENTS file in the same directory. /> + + + + + + + + diff --git a/dev-build-push.bat b/dev-build-push.bat index 59041e18a..c0b12fe22 100644 --- a/dev-build-push.bat +++ b/dev-build-push.bat @@ -1,3 +1,7 @@ @echo off -"%ProgramFiles(x86)%\MSBuild\12.0\Bin\MSBuild.exe" build.proj /t:Package;Push /p:BuildType=Dev +IF EXIST "%ProgramFiles(x86)%\MSBuild\14.0\Bin\MSBuild.exe" ( + "%ProgramFiles(x86)%\MSBuild\14.0\Bin\MSBuild.exe" build.proj /t:Package;Push /p:BuildType=Dev +) ELSE ( + "%ProgramFiles(x86)%\MSBuild\12.0\Bin\MSBuild.exe" build.proj /t:Package;Push /p:BuildType=Dev +) pause \ No newline at end of file diff --git a/dev-build-vs2015.bat b/dev-build-vs2015.bat deleted file mode 100644 index 6a11889b3..000000000 --- a/dev-build-vs2015.bat +++ /dev/null @@ -1,3 +0,0 @@ -@echo off -"%ProgramFiles(x86)%\MSBuild\14.0\Bin\MSBuild.exe" build.proj /p:BuildType=Dev -pause \ No newline at end of file diff --git a/dev-build.bat b/dev-build.bat index b11d61502..adaf88981 100644 --- a/dev-build.bat +++ b/dev-build.bat @@ -1,3 +1,7 @@ @echo off -"%ProgramFiles(x86)%\MSBuild\12.0\Bin\MSBuild.exe" build.proj /p:BuildType=Dev +IF EXIST "%ProgramFiles(x86)%\MSBuild\14.0\Bin\MSBuild.exe" ( + "%ProgramFiles(x86)%\MSBuild\14.0\Bin\MSBuild.exe" build.proj /p:BuildType=Dev +) ELSE ( + "%ProgramFiles(x86)%\MSBuild\12.0\Bin\MSBuild.exe" build.proj /p:BuildType=Dev +) pause \ No newline at end of file diff --git a/release-build-push.bat b/release-build-push.bat index 724c9dc50..adb004cd5 100644 --- a/release-build-push.bat +++ b/release-build-push.bat @@ -1,3 +1,7 @@ @echo off -"%ProgramFiles(x86)%\MSBuild\12.0\Bin\MSBuild.exe" build.proj /t:Package;Push /p:BuildType=Release +IF EXIST "%ProgramFiles(x86)%\MSBuild\14.0\Bin\MSBuild.exe" ( + "%ProgramFiles(x86)%\MSBuild\14.0\Bin\MSBuild.exe" build.proj /t:Package;Push /p:BuildType=Release +) ELSE ( + "%ProgramFiles(x86)%\MSBuild\12.0\Bin\MSBuild.exe" build.proj /t:Package;Push /p:BuildType=Release +) pause \ No newline at end of file diff --git a/release-build.bat b/release-build.bat index 39ae9d306..6c847f6ba 100644 --- a/release-build.bat +++ b/release-build.bat @@ -1,3 +1,8 @@ @echo off -"%ProgramFiles(x86)%\MSBuild\12.0\Bin\MSBuild.exe" build.proj /p:BuildType=Release +IF EXIST "%ProgramFiles(x86)%\MSBuild\14.0\Bin\MSBuild.exe" ( + "%ProgramFiles(x86)%\MSBuild\14.0\Bin\MSBuild.exe" build.proj /p:BuildType=Release +) ELSE ( + "%ProgramFiles(x86)%\MSBuild\12.0\Bin\MSBuild.exe" build.proj /p:BuildType=Release +) +pause pause \ No newline at end of file diff --git a/src/React.AspNet5/React.AspNet5.kproj b/src/React.AspNet5/React.AspNet5.kproj index 6bada85a1..a00ba6e4c 100644 --- a/src/React.AspNet5/React.AspNet5.kproj +++ b/src/React.AspNet5/React.AspNet5.kproj @@ -9,7 +9,7 @@ a7acdb56-5e43-40a6-92c9-2c52228e6074 React.AspNet5 ..\artifacts\obj\$(MSBuildProjectName) - ..\artifacts\bin\$(MSBuildProjectName)\ + ..\..\bin\$(MSBuildProjectName)\ React.AspNet5 diff --git a/src/React.AspNet5/project.json b/src/React.AspNet5/project.json index 62c29143d..240709f03 100644 --- a/src/React.AspNet5/project.json +++ b/src/React.AspNet5/project.json @@ -1,17 +1,18 @@ { - "version": "1.3.1-*", + "version": "1.4.0-*", "configurations": { "Debug": { "compilationOptions": { - "define": ["DEBUG", "TRACE", "ASPNET5"] + "define": [ "DEBUG", "TRACE", "ASPNET5" ] } }, "Release": { "compilationOptions": { - "define": ["RELEASE", "TRACE", "ASPNET5"], - "optimize": true + "define": [ "RELEASE", "TRACE", "ASPNET5" ], + "optimize": true, + "warningsAsErrors": true, } - }, + } }, "dependencies": { "Microsoft.Framework.DependencyInjection": "1.0.0.0-beta3", @@ -20,8 +21,13 @@ "Microsoft.AspNet.StaticFiles": "1.0.0.0-beta3", "React": "" }, - "frameworks": { - "aspnet50": {} - } + "aspnet50": { } + }, + + // NuGet info + "authors": [ "Daniel Lo Nigro" ], + "description": "ReactJS tools for ASP.NET 5, including ASP.NET MVC 6. Please refer to project site (http://reactjs.net/) for more details, usage examples and sample code", + "tags": [ "asp.net", "mvc", "asp", "javascript", "js", "react", "facebook", "reactjs", "vnext" ], + "projectUrl": "http://reactjs.net/" } diff --git a/src/React.Sample.Mvc6/project.json b/src/React.Sample.Mvc6/project.json index e7612a834..d0203dbe4 100644 --- a/src/React.Sample.Mvc6/project.json +++ b/src/React.Sample.Mvc6/project.json @@ -1,7 +1,7 @@ { /* Click to learn more about project.json http://go.microsoft.com/fwlink/?LinkID=517074 */ "webroot": "wwwroot", - "version": "1.0.0-*", + "version": "1.4.0-*", "dependencies": { "Microsoft.AspNet.Mvc": "6.0.0.0-beta3", "Microsoft.AspNet.Diagnostics": "1.0.0.0-beta3", diff --git a/src/React.VS2015.sln b/src/React.VS2015.sln index 84becb55a..715c051b6 100644 --- a/src/React.VS2015.sln +++ b/src/React.VS2015.sln @@ -1,7 +1,7 @@  Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 14 -VisualStudioVersion = 14.0.22512.0 +VisualStudioVersion = 14.0.22609.0 MinimumVisualStudioVersion = 10.0.40219.1 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{F567B25C-E869-4C93-9C96-077761250F87}" EndProject @@ -15,6 +15,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build", "Build", "{CB51F03F ..\build.proj = ..\build.proj ..\dev-build-push.bat = ..\dev-build-push.bat ..\dev-build.bat = ..\dev-build.bat + build\React.tasks.proj = build\React.tasks.proj ..\README.md = ..\README.md ..\release-build-push.bat = ..\release-build-push.bat ..\release-build.bat = ..\release-build.bat diff --git a/src/React.tasks.proj b/src/React.tasks.proj new file mode 100644 index 000000000..53410258d --- /dev/null +++ b/src/React.tasks.proj @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/wrap/React/project.json b/src/wrap/React/project.json index 6c38945f9..882208f7b 100644 --- a/src/wrap/React/project.json +++ b/src/wrap/React/project.json @@ -1,5 +1,5 @@ { - "version": "1.3.1-*", + "version": "1.4.0-*", "frameworks": { "net40": { "wrappedProject": "../../React/React.csproj",