From 45636b143ea99b19889b1082176457187782edf4 Mon Sep 17 00:00:00 2001 From: Pranav K Date: Wed, 18 Nov 2015 12:01:47 -0800 Subject: [PATCH] Updating json files to pin versions and build.cmd to pin KoreBuild and DNX --- global.json | 10 ++- samples/AntiforgerySample/project.json | 68 +++++++++---------- src/Microsoft.AspNet.Antiforgery/project.json | 14 ++-- .../project.json | 46 ++++++------- 4 files changed, 70 insertions(+), 68 deletions(-) diff --git a/global.json b/global.json index feb51cb..a7e9db6 100644 --- a/global.json +++ b/global.json @@ -1,3 +1,9 @@ { - "projects": ["src", "samples"] -} + "projects": [ + "src", + "samples" + ], + "sdk": { + "version": "1.0.0-rc1-final" + } +} \ No newline at end of file diff --git a/samples/AntiforgerySample/project.json b/samples/AntiforgerySample/project.json index 34f061b..36cb8c2 100644 --- a/samples/AntiforgerySample/project.json +++ b/samples/AntiforgerySample/project.json @@ -1,36 +1,32 @@ -{ - "webroot": "wwwroot", - "version": "1.0.0-*", - - "dependencies": { - "Microsoft.AspNet.Antiforgery": "1.0.0-*", - "Microsoft.AspNet.Http.Extensions": "1.0.0-*", - "Microsoft.AspNet.Server.IIS": "1.0.0-*", - "Microsoft.AspNet.Server.Kestrel": "1.0.0-*", - "Microsoft.AspNet.Server.WebListener": "1.0.0-*", - "Microsoft.AspNet.StaticFiles": "1.0.0-*" - }, - - "commands": { - "kestrel": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.Kestrel --server.urls http://localhost:5000", - "web": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.WebListener --server.urls http://localhost:5000" - }, - - "frameworks": { - "dnx451": { }, - "dnxcore50": { } - }, - - "publishExclude": [ - "node_modules", - "bower_components", - "**.xproj", - "**.user", - "**.vspscc" - ], - "exclude": [ - "wwwroot", - "node_modules", - "bower_components" - ] -} +{ + "webroot": "wwwroot", + "version": "1.0.0-*", + "dependencies": { + "Microsoft.AspNet.Antiforgery": "1.0.0-rc1-final", + "Microsoft.AspNet.Http.Extensions": "1.0.0-rc1-final", + "Microsoft.AspNet.Server.IIS": "1.0.0-*", + "Microsoft.AspNet.Server.Kestrel": "1.0.0-rc1-final", + "Microsoft.AspNet.Server.WebListener": "1.0.0-rc1-final", + "Microsoft.AspNet.StaticFiles": "1.0.0-rc1-final" + }, + "commands": { + "kestrel": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.Kestrel --server.urls http://localhost:5000", + "web": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.WebListener --server.urls http://localhost:5000" + }, + "frameworks": { + "dnx451": {}, + "dnxcore50": {} + }, + "publishExclude": [ + "node_modules", + "bower_components", + "**.xproj", + "**.user", + "**.vspscc" + ], + "exclude": [ + "wwwroot", + "node_modules", + "bower_components" + ] +} \ No newline at end of file diff --git a/src/Microsoft.AspNet.Antiforgery/project.json b/src/Microsoft.AspNet.Antiforgery/project.json index 1c93add..e076881 100644 --- a/src/Microsoft.AspNet.Antiforgery/project.json +++ b/src/Microsoft.AspNet.Antiforgery/project.json @@ -1,6 +1,6 @@ { "description": "An antiforgery system for ASP.NET designed to generate and validate tokens to prevent Cross-Site Request Forgery attacks.", - "version": "1.0.0-*", + "version": "1.0.0-rc1-final", "compilationOptions": { "warningsAsErrors": true, "keyFile": "../../tools/Key.snk" @@ -10,12 +10,12 @@ "url": "git://github.com/aspnet/antiforgery" }, "dependencies": { - "Microsoft.AspNet.DataProtection": "1.0.0-*", - "Microsoft.AspNet.Http.Abstractions": "1.0.0-*", - "Microsoft.AspNet.WebUtilities": "1.0.0-*", - "Microsoft.Extensions.DependencyInjection.Abstractions": "1.0.0-*", - "Microsoft.Extensions.OptionsModel": "1.0.0-*", - "Microsoft.Extensions.WebEncoders": "1.0.0-*" + "Microsoft.AspNet.DataProtection": "1.0.0-rc1-final", + "Microsoft.AspNet.Http.Abstractions": "1.0.0-rc1-final", + "Microsoft.AspNet.WebUtilities": "1.0.0-rc1-final", + "Microsoft.Extensions.DependencyInjection.Abstractions": "1.0.0-rc1-final", + "Microsoft.Extensions.OptionsModel": "1.0.0-rc1-final", + "Microsoft.Extensions.WebEncoders": "1.0.0-rc1-final" }, "frameworks": { "net451": {}, diff --git a/test/Microsoft.AspNet.Antiforgery.Test/project.json b/test/Microsoft.AspNet.Antiforgery.Test/project.json index 9da84be..4323481 100644 --- a/test/Microsoft.AspNet.Antiforgery.Test/project.json +++ b/test/Microsoft.AspNet.Antiforgery.Test/project.json @@ -1,25 +1,25 @@ { - "compilationOptions": { - "warningsAsErrors": true, - "keyFile": "../../tools/Key.snk" + "compilationOptions": { + "warningsAsErrors": true, + "keyFile": "../../tools/Key.snk" + }, + "dependencies": { + "Microsoft.AspNet.Antiforgery": "1.0.0-rc1-final", + "Microsoft.AspNet.Http": "1.0.0-rc1-final", + "Microsoft.Extensions.DependencyInjection": "1.0.0-rc1-final", + "Microsoft.Extensions.WebEncoders.Testing": "1.0.0-rc1-final", + "xunit.runner.aspnet": "2.0.0-aspnet-rc1-final" + }, + "commands": { + "run": "xunit.runner.aspnet", + "test": "xunit.runner.aspnet" + }, + "frameworks": { + "dnx451": { + "dependencies": { + "Moq": "4.2.1312.1622" + } }, - "dependencies": { - "Microsoft.AspNet.Antiforgery": "1.0.0-*", - "Microsoft.AspNet.Http": "1.0.0-*", - "Microsoft.Extensions.DependencyInjection": "1.0.0-*", - "Microsoft.Extensions.WebEncoders.Testing": "1.0.0-*", - "xunit.runner.aspnet": "2.0.0-aspnet-*" - }, - "commands": { - "run": "xunit.runner.aspnet", - "test": "xunit.runner.aspnet" - }, - "frameworks": { - "dnx451": { - "dependencies": { - "Moq": "4.2.1312.1622" - } - }, - "dnxcore50": { } - } -} + "dnxcore50": {} + } +} \ No newline at end of file