| @@ -0,0 +1,34 @@ | ||
| <?xml version="1.0"?> | ||
| <configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform"> | ||
|
|
||
| <!-- If runtime tag is absent --> | ||
| <runtime xdt:Transform="InsertIfMissing"> | ||
| <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> | ||
| </assemblyBinding> | ||
| </runtime> | ||
|
|
||
| <!-- If runtime tag is present, but assembly binding tag is absent --> | ||
| <runtime> | ||
| <assemblyBinding xdt:Transform="InsertIfMissing" xmlns="urn:schemas-microsoft-com:asm.v1"> | ||
| </assemblyBinding> | ||
| </runtime> | ||
|
|
||
| <!-- If the binding redirect is already present, the existing entry needs to be removed before inserting the new entry--> | ||
| <runtime> | ||
| <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> | ||
| <dependentAssembly xdt:Transform="Remove" | ||
| xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.Web.Mvc')" > | ||
| </dependentAssembly> | ||
| </assemblyBinding> | ||
| </runtime> | ||
|
|
||
| <!-- Inserting the new binding redirect --> | ||
| <runtime> | ||
| <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> | ||
| <dependentAssembly xdt:Transform="Insert"> | ||
| <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" /> | ||
| <bindingRedirect oldVersion="1.0.0.0-5.2.3.0" newVersion="5.2.3.0" /> | ||
| </dependentAssembly> | ||
| </assemblyBinding> | ||
| </runtime> | ||
| </configuration> |
| @@ -0,0 +1,10 @@ | ||
| <?xml version="1.0"?> | ||
| <configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform"> | ||
| <runtime> | ||
| <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> | ||
| <dependentAssembly xdt:Transform="Remove" | ||
| xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.Web.Mvc')" > | ||
| </dependentAssembly> | ||
| </assemblyBinding> | ||
| </runtime> | ||
| </configuration> |
| @@ -0,0 +1,11 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <configuration> | ||
| <system.webServer> | ||
| <handlers> | ||
| <remove name="ExtensionlessUrlHandler-Integrated-4.0" /> | ||
| <remove name="OPTIONSVerbHandler" /> | ||
| <remove name="TRACEVerbHandler" /> | ||
| <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" /> | ||
| </handlers> | ||
| </system.webServer> | ||
| </configuration> |
| @@ -0,0 +1,135 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <doc> | ||
| <assembly> | ||
| <name>System.Web.Http.WebHost</name> | ||
| </assembly> | ||
| <members> | ||
| <member name="T:System.Web.Http.GlobalConfiguration"> | ||
| <summary> Provides a global <see cref="T:System.Web.Http.HttpConfiguration" /> for ASP.NET applications. </summary> | ||
| </member> | ||
| <member name="P:System.Web.Http.GlobalConfiguration.Configuration"></member> | ||
| <member name="M:System.Web.Http.GlobalConfiguration.Configure(System.Action{System.Web.Http.HttpConfiguration})"></member> | ||
| <member name="P:System.Web.Http.GlobalConfiguration.DefaultHandler"></member> | ||
| <member name="P:System.Web.Http.GlobalConfiguration.DefaultServer"> | ||
| <summary> Gets the global <see cref="T:System.Web.Http.HttpServer" />. </summary> | ||
| </member> | ||
| <member name="T:System.Web.Http.RouteCollectionExtensions"> | ||
| <summary> Extension methods for <see cref="T:System.Web.Routing.RouteCollection" /></summary> | ||
| </member> | ||
| <member name="M:System.Web.Http.RouteCollectionExtensions.MapHttpRoute(System.Web.Routing.RouteCollection,System.String,System.String)"> | ||
| <summary>Maps the specified route template.</summary> | ||
| <returns>A reference to the mapped route.</returns> | ||
| <param name="routes">A collection of routes for the application.</param> | ||
| <param name="name">The name of the route to map.</param> | ||
| <param name="routeTemplate">The route template for the route.</param> | ||
| </member> | ||
| <member name="M:System.Web.Http.RouteCollectionExtensions.MapHttpRoute(System.Web.Routing.RouteCollection,System.String,System.String,System.Object)"> | ||
| <summary>Maps the specified route template and sets default route.</summary> | ||
| <returns>A reference to the mapped route.</returns> | ||
| <param name="routes">A collection of routes for the application.</param> | ||
| <param name="name">The name of the route to map.</param> | ||
| <param name="routeTemplate">The route template for the route.</param> | ||
| <param name="defaults">An object that contains default route values.</param> | ||
| </member> | ||
| <member name="M:System.Web.Http.RouteCollectionExtensions.MapHttpRoute(System.Web.Routing.RouteCollection,System.String,System.String,System.Object,System.Object)"> | ||
| <summary>Maps the specified route template and sets default route values and constraints.</summary> | ||
| <returns>A reference to the mapped route.</returns> | ||
| <param name="routes">A collection of routes for the application.</param> | ||
| <param name="name">The name of the route to map.</param> | ||
| <param name="routeTemplate">The route template for the route.</param> | ||
| <param name="defaults">An object that contains default route values.</param> | ||
| <param name="constraints">A set of expressions that specify values for routeTemplate.</param> | ||
| </member> | ||
| <member name="M:System.Web.Http.RouteCollectionExtensions.MapHttpRoute(System.Web.Routing.RouteCollection,System.String,System.String,System.Object,System.Object,System.Net.Http.HttpMessageHandler)"> | ||
| <summary>Maps the specified route template and sets default route values, constraints, and end-point message handler.</summary> | ||
| <returns>A reference to the mapped route.</returns> | ||
| <param name="routes">A collection of routes for the application.</param> | ||
| <param name="name">The name of the route to map.</param> | ||
| <param name="routeTemplate">The route template for the route.</param> | ||
| <param name="defaults">An object that contains default route values.</param> | ||
| <param name="constraints">A set of expressions that specify values for routeTemplate.</param> | ||
| <param name="handler">The handler to which the request will be dispatched.</param> | ||
| </member> | ||
| <member name="T:System.Web.Http.WebHost.HttpControllerHandler"> | ||
| <summary>A <see cref="T:System.Web.IHttpTaskAsyncHandler" /> that passes ASP.NET requests into the <see cref="T:System.Web.Http.HttpServer" /> pipeline and write the result back.</summary> | ||
| </member> | ||
| <member name="M:System.Web.Http.WebHost.HttpControllerHandler.#ctor(System.Web.Routing.RouteData)"> | ||
| <summary>Initializes a new instance of the <see cref="T:System.Web.Http.WebHost.HttpControllerHandler" /> class.</summary> | ||
| <param name="routeData">The route data.</param> | ||
| </member> | ||
| <member name="M:System.Web.Http.WebHost.HttpControllerHandler.#ctor(System.Web.Routing.RouteData,System.Net.Http.HttpMessageHandler)"> | ||
| <summary>Initializes a new instance of the <see cref="T:System.Web.Http.WebHost.HttpControllerHandler" /> class.</summary> | ||
| <param name="routeData">The route data.</param> | ||
| <param name="handler">The message handler to dispatch requests to.</param> | ||
| </member> | ||
| <member name="M:System.Web.Http.WebHost.HttpControllerHandler.ProcessRequestAsync(System.Web.HttpContext)"> | ||
| <summary>Provides code that handles an asynchronous task</summary> | ||
| <returns>The asynchronous task.</returns> | ||
| <param name="context">The HTTP context.</param> | ||
| </member> | ||
| <member name="T:System.Web.Http.WebHost.HttpControllerRouteHandler"> | ||
| <summary> A <see cref="T:System.Web.Routing.IRouteHandler" /> that returns instances of <see cref="T:System.Web.Http.WebHost.HttpControllerHandler" /> that can pass requests to a given <see cref="T:System.Web.Http.HttpServer" /> instance. </summary> | ||
| </member> | ||
| <member name="M:System.Web.Http.WebHost.HttpControllerRouteHandler.#ctor"> | ||
| <summary> Initializes a new instance of the <see cref="T:System.Web.Http.WebHost.HttpControllerRouteHandler" /> class. </summary> | ||
| </member> | ||
| <member name="M:System.Web.Http.WebHost.HttpControllerRouteHandler.GetHttpHandler(System.Web.Routing.RequestContext)"> | ||
| <summary> Provides the object that processes the request. </summary> | ||
| <returns> An object that processes the request. </returns> | ||
| <param name="requestContext">An object that encapsulates information about the request.</param> | ||
| </member> | ||
| <member name="P:System.Web.Http.WebHost.HttpControllerRouteHandler.Instance"> | ||
| <summary> Gets the singleton <see cref="T:System.Web.Http.WebHost.HttpControllerRouteHandler" /> instance. </summary> | ||
| </member> | ||
| <member name="M:System.Web.Http.WebHost.HttpControllerRouteHandler.System#Web#Routing#IRouteHandler#GetHttpHandler(System.Web.Routing.RequestContext)"> | ||
| <summary> Provides the object that processes the request. </summary> | ||
| <returns> An object that processes the request. </returns> | ||
| <param name="requestContext">An object that encapsulates information about the request.</param> | ||
| </member> | ||
| <member name="T:System.Web.Http.WebHost.PreApplicationStartCode"> | ||
| <summary>Provides a registration point for the simple membership pre-application start code.</summary> | ||
| </member> | ||
| <member name="M:System.Web.Http.WebHost.PreApplicationStartCode.Start"> | ||
| <summary>Registers the simple membership pre-application start code.</summary> | ||
| </member> | ||
| <member name="T:System.Web.Http.WebHost.WebHostBufferPolicySelector"> | ||
| <summary>Represents the web host buffer policy selector.</summary> | ||
| </member> | ||
| <member name="M:System.Web.Http.WebHost.WebHostBufferPolicySelector.#ctor"> | ||
| <summary>Initializes a new instance of the <see cref="T:System.Web.Http.WebHost.WebHostBufferPolicySelector" /> class.</summary> | ||
| </member> | ||
| <member name="M:System.Web.Http.WebHost.WebHostBufferPolicySelector.UseBufferedInputStream(System.Object)"> | ||
| <summary>Gets a value that indicates whether the host should buffer the entity body of the HTTP request.</summary> | ||
| <returns>true if buffering should be used; otherwise a streamed request should be used.</returns> | ||
| <param name="hostContext">The host context.</param> | ||
| </member> | ||
| <member name="M:System.Web.Http.WebHost.WebHostBufferPolicySelector.UseBufferedOutputStream(System.Net.Http.HttpResponseMessage)"> | ||
| <summary>Uses a buffered output stream for the web host.</summary> | ||
| <returns>A buffered output stream.</returns> | ||
| <param name="response">The response.</param> | ||
| </member> | ||
| <member name="T:System.Web.Http.WebHost.WebHostExceptionCatchBlocks"> | ||
| <summary>Provides the catch blocks used within this assembly.</summary> | ||
| </member> | ||
| <member name="P:System.Web.Http.WebHost.WebHostExceptionCatchBlocks.HttpControllerHandlerBufferContent"> | ||
| <summary>Gets the label for the catch block in System.Web.Http.WebHost.HttpControllerHandler.WriteBufferedResponseContentAsync.</summary> | ||
| <returns>The label for the catch block in System.Web.Http.WebHost.HttpControllerHandler.WriteBufferedResponseContentAsync.</returns> | ||
| </member> | ||
| <member name="P:System.Web.Http.WebHost.WebHostExceptionCatchBlocks.HttpControllerHandlerBufferError"> | ||
| <summary>Gets the label for the catch block in System.Web.Http.WebHost.HttpControllerHandler.WriteErrorResponseContentAsync.</summary> | ||
| <returns>The label for the catch block in System.Web.Http.WebHost.HttpControllerHandler.WriteErrorResponseContentAsync.</returns> | ||
| </member> | ||
| <member name="P:System.Web.Http.WebHost.WebHostExceptionCatchBlocks.HttpControllerHandlerComputeContentLength"> | ||
| <summary>Gets the label for the catch block in System.Web.Http.WebHost.HttpControllerHandler.ComputeContentLength.</summary> | ||
| <returns>The label for the catch block in System.Web.Http.WebHost.HttpControllerHandler.ComputeContentLength.</returns> | ||
| </member> | ||
| <member name="P:System.Web.Http.WebHost.WebHostExceptionCatchBlocks.HttpControllerHandlerStreamContent"> | ||
| <summary>Gets the label for the catch block in System.Web.Http.WebHost.HttpControllerHandler.WriteStreamedResponseContentAsync.</summary> | ||
| <returns>The label for the catch block in System.Web.Http.WebHost.HttpControllerHandler.WriteStreamedResponseContentAsync.</returns> | ||
| </member> | ||
| <member name="P:System.Web.Http.WebHost.WebHostExceptionCatchBlocks.HttpWebRoute"> | ||
| <summary>Gets the label for the catch block in System.Web.Http.WebHost.WebHostExceptionCatchBlocks.HttpWebRoute.GetRouteData.</summary> | ||
| <returns>The catch block in System.Web.Http.WebHost.WebHostExceptionCatchBlocks.HttpWebRoute.GetRouteData.</returns> | ||
| </member> | ||
| </members> | ||
| </doc> |
| @@ -0,0 +1,41 @@ | ||
| <?xml version="1.0"?> | ||
| <configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform"> | ||
|
|
||
| <!-- If runtime tag is absent --> | ||
| <runtime xdt:Transform="InsertIfMissing"> | ||
| <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> | ||
| </assemblyBinding> | ||
| </runtime> | ||
|
|
||
| <!-- If runtime tag is present, but assembly binding tag is absent --> | ||
| <runtime> | ||
| <assemblyBinding xdt:Transform="InsertIfMissing" xmlns="urn:schemas-microsoft-com:asm.v1"> | ||
| </assemblyBinding> | ||
| </runtime> | ||
|
|
||
| <!-- If the binding redirect is already present, the existing entry needs to be removed before inserting the new entry--> | ||
| <runtime> | ||
| <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> | ||
| <dependentAssembly xdt:Transform="Remove" | ||
| xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.Web.Helpers')" > | ||
| </dependentAssembly> | ||
| <dependentAssembly xdt:Transform="Remove" | ||
| xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.Web.WebPages')" > | ||
| </dependentAssembly> | ||
| </assemblyBinding> | ||
| </runtime> | ||
|
|
||
| <!-- Inserting the new binding redirect --> | ||
| <runtime> | ||
| <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> | ||
| <dependentAssembly xdt:Transform="Insert"> | ||
| <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" /> | ||
| <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" /> | ||
| </dependentAssembly> | ||
| <dependentAssembly xdt:Transform="Insert"> | ||
| <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" /> | ||
| <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" /> | ||
| </dependentAssembly> | ||
| </assemblyBinding> | ||
| </runtime> | ||
| </configuration> |
| @@ -0,0 +1,13 @@ | ||
| <?xml version="1.0"?> | ||
| <configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform"> | ||
| <runtime> | ||
| <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> | ||
| <dependentAssembly xdt:Transform="Remove" | ||
| xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.Web.Helpers')" > | ||
| </dependentAssembly> | ||
| <dependentAssembly xdt:Transform="Remove" | ||
| xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.Web.WebPages')" > | ||
| </dependentAssembly> | ||
| </assemblyBinding> | ||
| </runtime> | ||
| </configuration> |
| @@ -0,0 +1,60 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <doc> | ||
| <assembly> | ||
| <name>System.Web.WebPages.Deployment</name> | ||
| </assembly> | ||
| <members> | ||
| <member name="T:System.Web.WebPages.Deployment.PreApplicationStartCode"> | ||
| <summary>Provides a registration point for pre-application start code for Web Pages deployment.</summary> | ||
| </member> | ||
| <member name="M:System.Web.WebPages.Deployment.PreApplicationStartCode.Start"> | ||
| <summary>Registers pre-application start code for Web Pages deployment.</summary> | ||
| </member> | ||
| <member name="T:System.Web.WebPages.Deployment.WebPagesDeployment"> | ||
| <summary>This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Provides methods that are used to get deployment information about the Web application.</summary> | ||
| </member> | ||
| <member name="M:System.Web.WebPages.Deployment.WebPagesDeployment.GetAssemblyPath(System.Version)"> | ||
| <summary>This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets the assembly path for the Web Pages deployment.</summary> | ||
| <returns>The assembly path for the Web Pages deployment.</returns> | ||
| <param name="version">The Web Pages version.</param> | ||
| </member> | ||
| <member name="M:System.Web.WebPages.Deployment.WebPagesDeployment.GetExplicitWebPagesVersion(System.String)"> | ||
| <summary>This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets the Web Pages version from the given binary path.</summary> | ||
| <returns>The Web Pages version.</returns> | ||
| <param name="path">The binary path for the Web Pages.</param> | ||
| </member> | ||
| <member name="M:System.Web.WebPages.Deployment.WebPagesDeployment.GetIncompatibleDependencies(System.String)"> | ||
| <summary>This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets the assembly references from the given path regardless of the Web Pages version.</summary> | ||
| <returns>The dictionary containing the assembly references of the Web Pages and its version.</returns> | ||
| <param name="appPath">The path to the Web Pages application.</param> | ||
| </member> | ||
| <member name="M:System.Web.WebPages.Deployment.WebPagesDeployment.GetMaxVersion"> | ||
| <summary>This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets the maximum version of the Web Pages loaded assemblies.</summary> | ||
| <returns>The maximum version of the Web Pages loaded assemblies.</returns> | ||
| </member> | ||
| <member name="M:System.Web.WebPages.Deployment.WebPagesDeployment.GetVersion(System.String)"> | ||
| <summary>Gets the Web Pages version from the given path.</summary> | ||
| <returns>The Web Pages version.</returns> | ||
| <param name="path">The path of the root directory for the application.</param> | ||
| </member> | ||
| <member name="M:System.Web.WebPages.Deployment.WebPagesDeployment.GetVersionWithoutEnabledCheck(System.String)"> | ||
| <summary>This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets the Web Pages version using the configuration settings with the specified path.</summary> | ||
| <returns>The Web Pages version.</returns> | ||
| <param name="path">The path to the application settings.</param> | ||
| </member> | ||
| <member name="M:System.Web.WebPages.Deployment.WebPagesDeployment.GetWebPagesAssemblies"> | ||
| <summary>This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Returns the assemblies for this Web Pages deployment.</summary> | ||
| <returns>A list containing the assemblies for this Web Pages deployment.</returns> | ||
| </member> | ||
| <member name="M:System.Web.WebPages.Deployment.WebPagesDeployment.IsEnabled(System.String)"> | ||
| <summary>This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Indicates whether the Web Pages deployment is enabled.</summary> | ||
| <returns>true if the Web Pages deployment is enabled; otherwise, false.</returns> | ||
| <param name="path">The path to the Web Pages deployment.</param> | ||
| </member> | ||
| <member name="M:System.Web.WebPages.Deployment.WebPagesDeployment.IsExplicitlyDisabled(System.String)"> | ||
| <summary>This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Indicates whether the Web Pages deployment is explicitly disabled.</summary> | ||
| <returns>true if the Web Pages deployment is explicitly disabled; otherwise, false.</returns> | ||
| <param name="path">The path to the Web Pages deployment.</param> | ||
| </member> | ||
| </members> | ||
| </doc> |
| @@ -0,0 +1,93 @@ | ||
| param($installPath, $toolsPath, $package, $project) | ||
|
|
||
| # open json.net splash page on package install | ||
| # don't open if json.net is installed as a dependency | ||
|
|
||
| try | ||
| { | ||
| $url = "http://james.newtonking.com/json" | ||
| $dte2 = Get-Interface $dte ([EnvDTE80.DTE2]) | ||
|
|
||
| if ($dte2.ActiveWindow.Caption -eq "Package Manager Console") | ||
| { | ||
| # user is installing from VS NuGet console | ||
| # get reference to the window, the console host and the input history | ||
| # show webpage if "install-package newtonsoft.json" was last input | ||
|
|
||
| $consoleWindow = $(Get-VSComponentModel).GetService([NuGetConsole.IPowerConsoleWindow]) | ||
|
|
||
| $props = $consoleWindow.GetType().GetProperties([System.Reflection.BindingFlags]::Instance -bor ` | ||
| [System.Reflection.BindingFlags]::NonPublic) | ||
|
|
||
| $prop = $props | ? { $_.Name -eq "ActiveHostInfo" } | select -first 1 | ||
| if ($prop -eq $null) { return } | ||
|
|
||
| $hostInfo = $prop.GetValue($consoleWindow) | ||
| if ($hostInfo -eq $null) { return } | ||
|
|
||
| $history = $hostInfo.WpfConsole.InputHistory.History | ||
|
|
||
| $lastCommand = $history | select -last 1 | ||
|
|
||
| if ($lastCommand) | ||
| { | ||
| $lastCommand = $lastCommand.Trim().ToLower() | ||
| if ($lastCommand.StartsWith("install-package") -and $lastCommand.Contains("newtonsoft.json")) | ||
| { | ||
| $dte2.ItemOperations.Navigate($url) | Out-Null | ||
| } | ||
| } | ||
| } | ||
| else | ||
| { | ||
| # user is installing from VS NuGet dialog | ||
| # get reference to the window, then smart output console provider | ||
| # show webpage if messages in buffered console contains "installing...newtonsoft.json" in last operation | ||
|
|
||
| $instanceField = [NuGet.Dialog.PackageManagerWindow].GetField("CurrentInstance", [System.Reflection.BindingFlags]::Static -bor ` | ||
| [System.Reflection.BindingFlags]::NonPublic) | ||
| $consoleField = [NuGet.Dialog.PackageManagerWindow].GetField("_smartOutputConsoleProvider", [System.Reflection.BindingFlags]::Instance -bor ` | ||
| [System.Reflection.BindingFlags]::NonPublic) | ||
| if ($instanceField -eq $null -or $consoleField -eq $null) { return } | ||
|
|
||
| $instance = $instanceField.GetValue($null) | ||
| if ($instance -eq $null) { return } | ||
|
|
||
| $consoleProvider = $consoleField.GetValue($instance) | ||
| if ($consoleProvider -eq $null) { return } | ||
|
|
||
| $console = $consoleProvider.CreateOutputConsole($false) | ||
|
|
||
| $messagesField = $console.GetType().GetField("_messages", [System.Reflection.BindingFlags]::Instance -bor ` | ||
| [System.Reflection.BindingFlags]::NonPublic) | ||
| if ($messagesField -eq $null) { return } | ||
|
|
||
| $messages = $messagesField.GetValue($console) | ||
| if ($messages -eq $null) { return } | ||
|
|
||
| $operations = $messages -split "==============================" | ||
|
|
||
| $lastOperation = $operations | select -last 1 | ||
|
|
||
| if ($lastOperation) | ||
| { | ||
| $lastOperation = $lastOperation.ToLower() | ||
|
|
||
| $lines = $lastOperation -split "`r`n" | ||
|
|
||
| $installMatch = $lines | ? { $_.StartsWith("------- installing...newtonsoft.json ") } | select -first 1 | ||
|
|
||
| if ($installMatch) | ||
| { | ||
| $dte2.ItemOperations.Navigate($url) | Out-Null | ||
| } | ||
| } | ||
| } | ||
| } | ||
| catch | ||
| { | ||
| # stop potential errors from bubbling up | ||
| # worst case the splash page won't open | ||
| } | ||
|
|
||
| # yolo |
| @@ -0,0 +1,117 @@ | ||
| function Get-Checksum($file) { | ||
| $cryptoProvider = New-Object "System.Security.Cryptography.MD5CryptoServiceProvider" | ||
|
|
||
| $fileInfo = Get-Item $file | ||
| trap { ; | ||
| continue } $stream = $fileInfo.OpenRead() | ||
| if ($? -eq $false) { | ||
| # Couldn't open file for reading | ||
| return $null | ||
| } | ||
|
|
||
| $bytes = $cryptoProvider.ComputeHash($stream) | ||
| $checksum = '' | ||
| foreach ($byte in $bytes) { | ||
| $checksum += $byte.ToString('x2') | ||
| } | ||
|
|
||
| $stream.Close() | Out-Null | ||
|
|
||
| return $checksum | ||
| } | ||
|
|
||
| function AddOrUpdate-Reference($scriptsFolderProjectItem, $fileNamePattern, $newFileName) { | ||
| try { | ||
| $referencesFileProjectItem = $scriptsFolderProjectItem.ProjectItems.Item("_references.js") | ||
| } | ||
| catch { | ||
| # _references.js file not found | ||
| return | ||
| } | ||
|
|
||
| if ($referencesFileProjectItem -eq $null) { | ||
| # _references.js file not found | ||
| return | ||
| } | ||
|
|
||
| $referencesFilePath = $referencesFileProjectItem.FileNames(1) | ||
| $referencesTempFilePath = Join-Path $env:TEMP "_references.tmp.js" | ||
|
|
||
| if ((Select-String $referencesFilePath -pattern $fileNamePattern).Length -eq 0) { | ||
| # File has no existing matching reference line | ||
| # Add the full reference line to the beginning of the file | ||
| "/// <reference path=""$newFileName"" />" | Add-Content $referencesTempFilePath -Encoding UTF8 | ||
| Get-Content $referencesFilePath | Add-Content $referencesTempFilePath | ||
| } | ||
| else { | ||
| # Loop through file and replace old file name with new file name | ||
| Get-Content $referencesFilePath | ForEach-Object { $_ -replace $fileNamePattern, $newFileName } > $referencesTempFilePath | ||
| } | ||
|
|
||
| # Copy over the new _references.js file | ||
| Copy-Item $referencesTempFilePath $referencesFilePath -Force | ||
| Remove-Item $referencesTempFilePath -Force | ||
| } | ||
|
|
||
| function Remove-Reference($scriptsFolderProjectItem, $fileNamePattern) { | ||
| try { | ||
| $referencesFileProjectItem = $scriptsFolderProjectItem.ProjectItems.Item("_references.js") | ||
| } | ||
| catch { | ||
| # _references.js file not found | ||
| return | ||
| } | ||
|
|
||
| if ($referencesFileProjectItem -eq $null) { | ||
| return | ||
| } | ||
|
|
||
| $referencesFilePath = $referencesFileProjectItem.FileNames(1) | ||
| $referencesTempFilePath = Join-Path $env:TEMP "_references.tmp.js" | ||
|
|
||
| if ((Select-String $referencesFilePath -pattern $fileNamePattern).Length -eq 1) { | ||
| # Delete the line referencing the file | ||
| Get-Content $referencesFilePath | ForEach-Object { if (-not ($_ -match $fileNamePattern)) { $_ } } > $referencesTempFilePath | ||
|
|
||
| # Copy over the new _references.js file | ||
| Copy-Item $referencesTempFilePath $referencesFilePath -Force | ||
| Remove-Item $referencesTempFilePath -Force | ||
| } | ||
| } | ||
|
|
||
| function Delete-ProjectItem($item) { | ||
| $itemDeleted = $false | ||
| for ($1=1; $i -le 5; $i++) { | ||
| try { | ||
| $item.Delete() | ||
| $itemDeleted = $true | ||
| break | ||
| } | ||
| catch { | ||
| # Try again in 200ms | ||
| [System.Threading.Thread]::Sleep(200) | ||
| } | ||
| } | ||
| if ($itemDeleted -eq $false) { | ||
| throw "Unable to delete project item after five attempts." | ||
| } | ||
| } | ||
|
|
||
| # Extract the version number from the jquery file in the package's content\scripts folder | ||
| $packageScriptsFolder = Join-Path $installPath Content\Scripts | ||
| $jqueryFileName = Join-Path $packageScriptsFolder "jquery-*.js" | Get-ChildItem -Exclude "*.min.js","*-vsdoc.js" | Split-Path -Leaf | ||
| $jqueryFileNameRegEx = "jquery-((?:\d+\.)?(?:\d+\.)?(?:\d+\.)?(?:\d+)).js" | ||
| $jqueryFileName -match $jqueryFileNameRegEx | ||
| $ver = $matches[1] | ||
|
|
||
| $intelliSenseFileName = "jquery-$ver.intellisense.js" | ||
|
|
||
| # Get the project item for the scripts folder | ||
| try { | ||
| $scriptsFolderProjectItem = $project.ProjectItems.Item("Scripts") | ||
| $projectScriptsFolderPath = $scriptsFolderProjectItem.FileNames(1) | ||
| } | ||
| catch { | ||
| # No Scripts folder | ||
| Write-Host "No scripts folder found" | ||
| } |
| @@ -0,0 +1,41 @@ | ||
| param($installPath, $toolsPath, $package, $project) | ||
|
|
||
| . (Join-Path $toolsPath common.ps1) | ||
|
|
||
| # VS 11 and above supports the new intellisense JS files | ||
| $vsVersion = [System.Version]::Parse($dte.Version) | ||
| $supportsJsIntelliSenseFile = $vsVersion.Major -ge 11 | ||
|
|
||
| if (-not $supportsJsIntelliSenseFile) { | ||
| $displayVersion = $vsVersion.Major | ||
| Write-Host "IntelliSense JS files are not supported by your version of Visual Studio: $displayVersion" | ||
| exit | ||
| } | ||
|
|
||
| if ($scriptsFolderProjectItem -eq $null) { | ||
| # No Scripts folder | ||
| Write-Host "No Scripts folder found" | ||
| exit | ||
| } | ||
|
|
||
| # Delete the vsdoc file from the project | ||
| try { | ||
| $vsDocProjectItem = $scriptsFolderProjectItem.ProjectItems.Item("jquery-$ver-vsdoc.js") | ||
| Delete-ProjectItem $vsDocProjectItem | ||
| } | ||
| catch { | ||
| Write-Host "Error deleting vsdoc file: " + $_.Exception -ForegroundColor Red | ||
| exit | ||
| } | ||
|
|
||
| # Copy the intellisense file to the project from the tools folder | ||
| $intelliSenseFileSourcePath = Join-Path $toolsPath $intelliSenseFileName | ||
| try { | ||
| $scriptsFolderProjectItem.ProjectItems.AddFromFileCopy($intelliSenseFileSourcePath) | ||
| } | ||
| catch { | ||
| # This will throw if the file already exists, so we need to catch here | ||
| } | ||
|
|
||
| # Update the _references.js file | ||
| AddOrUpdate-Reference $scriptsFolderProjectItem $jqueryFileNameRegEx $jqueryFileName |
| @@ -0,0 +1,41 @@ | ||
| param($installPath, $toolsPath, $package, $project) | ||
|
|
||
| . (Join-Path $toolsPath common.ps1) | ||
|
|
||
| # Determine the file paths | ||
| $projectIntelliSenseFilePath = Join-Path $projectScriptsFolderPath $intelliSenseFileName | ||
| $origIntelliSenseFilePath = Join-Path $toolsPath $intelliSenseFileName | ||
|
|
||
| if (Test-Path $projectIntelliSenseFilePath) { | ||
| if ((Get-Checksum $projectIntelliSenseFilePath) -eq (Get-Checksum $origIntelliSenseFilePath)) { | ||
| # The intellisense file in the project matches the file in the tools folder, delete it | ||
|
|
||
| if ($scriptsFolderProjectItem -eq $null) { | ||
| # No Scripts folder | ||
| exit | ||
| } | ||
|
|
||
| try { | ||
| # Get the project item for the intellisense file | ||
| $intelliSenseFileProjectItem = $scriptsFolderProjectItem.ProjectItems.Item($intelliSenseFileName) | ||
| } | ||
| catch { | ||
| # The item wasn't found | ||
| exit | ||
| } | ||
|
|
||
| # Delete the project item | ||
| Delete-ProjectItem $intelliSenseFileProjectItem | ||
| } | ||
| else { | ||
| $projectScriptsFolderLeaf = Split-Path $projectScriptsFolderPath -Leaf | ||
| Write-Host "Skipping '$projectScriptsFolderLeaf\$intelliSenseFileName' because it was modified." -ForegroundColor Magenta | ||
| } | ||
| } | ||
| else { | ||
| # The intellisense file was not found in project | ||
| Write-Host "The intellisense file was not found in project at path $projectIntelliSenseFilePath" | ||
| } | ||
|
|
||
| # Update the _references.js file | ||
| Remove-Reference $scriptsFolderProjectItem $jqueryFileNameRegEx |
| @@ -0,0 +1,22 @@ | ||
|
|
||
| Microsoft Visual Studio Solution File, Format Version 12.00 | ||
| # Visual Studio 2013 | ||
| VisualStudioVersion = 12.0.0.0 | ||
| MinimumVisualStudioVersion = 10.0.0.1 | ||
| Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebApplication", "..\WebApplication.csproj", "{FE4872C4-37EC-49C5-AA6D-EDF8654E82B5}" | ||
| EndProject | ||
| Global | ||
| GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
| Debug|Any CPU = Debug|Any CPU | ||
| Release|Any CPU = Release|Any CPU | ||
| EndGlobalSection | ||
| GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
| {FE4872C4-37EC-49C5-AA6D-EDF8654E82B5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
| {FE4872C4-37EC-49C5-AA6D-EDF8654E82B5}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
| {FE4872C4-37EC-49C5-AA6D-EDF8654E82B5}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
| {FE4872C4-37EC-49C5-AA6D-EDF8654E82B5}.Release|Any CPU.Build.0 = Release|Any CPU | ||
| EndGlobalSection | ||
| GlobalSection(SolutionProperties) = preSolution | ||
| HideSolutionNode = FALSE | ||
| EndGlobalSection | ||
| EndGlobal |
| @@ -0,0 +1,19 @@ | ||
| using System.Web.Mvc; | ||
| using System.Web.Routing; | ||
|
|
||
| namespace test | ||
| { | ||
| public class RouteConfig | ||
| { | ||
| public static void RegisterRoutes(RouteCollection routes) | ||
| { | ||
| routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); | ||
|
|
||
| routes.MapRoute( | ||
| "Default", | ||
| "{controller}/{action}/{id}", | ||
| new {controller = "Home", action = "Index", id = UrlParameter.Optional} | ||
| ); | ||
| } | ||
| } | ||
| } |
| @@ -0,0 +1,21 @@ | ||
| using System.Web.Http; | ||
|
|
||
| namespace test | ||
| { | ||
| public static class WebApiConfig | ||
| { | ||
| public static void Register(HttpConfiguration config) | ||
| { | ||
| // Web API configuration and services | ||
|
|
||
| // Web API routes | ||
| config.MapHttpAttributeRoutes(); | ||
|
|
||
| config.Routes.MapHttpRoute( | ||
| "DefaultApi", | ||
| "api/{controller}/{id}", | ||
| new {id = RouteParameter.Optional} | ||
| ); | ||
| } | ||
| } | ||
| } |
| @@ -0,0 +1,24 @@ | ||
| body { | ||
| padding-top: 50px; | ||
| padding-bottom: 20px; | ||
| } | ||
|
|
||
| /* Set padding to keep content from hitting the edges */ | ||
| .body-content { | ||
| padding-left: 15px; | ||
| padding-right: 15px; | ||
| } | ||
|
|
||
| /* Override the default bootstrap behavior where horizontal description lists | ||
| will truncate terms that are too long to fit in the left column | ||
| */ | ||
| .dl-horizontal dt { | ||
| white-space: normal; | ||
| } | ||
|
|
||
| /* Set width on the form input elements since they're 100% wide by default */ | ||
| input, | ||
| select, | ||
| textarea { | ||
| max-width: 280px; | ||
| } |
| @@ -0,0 +1,31 @@ | ||
| using System; | ||
| using System.Collections.Generic; | ||
| using System.Linq; | ||
| using System.Web; | ||
| using System.Web.Mvc; | ||
| using System.Web.Mvc.Ajax; | ||
|
|
||
| namespace test.Controllers | ||
| { | ||
| public class HomeController : Controller | ||
| { | ||
| public ActionResult Index() | ||
| { | ||
| return View(); | ||
| } | ||
|
|
||
| public ActionResult About() | ||
| { | ||
| ViewBag.Message = "Your application description page."; | ||
|
|
||
| return View(); | ||
| } | ||
|
|
||
| public ActionResult Contact() | ||
| { | ||
| ViewBag.Message = "Your contact page."; | ||
|
|
||
| return View(); | ||
| } | ||
| } | ||
| } |
| @@ -0,0 +1 @@ | ||
| <%@ Application Inherits="test.Global" %> |
| @@ -0,0 +1,17 @@ | ||
| using System.Web; | ||
| using System.Web.Mvc; | ||
| using System.Web.Routing; | ||
| using System.Web.Http; | ||
|
|
||
| namespace test | ||
| { | ||
| public class Global : HttpApplication | ||
| { | ||
| protected void Application_Start() | ||
| { | ||
| AreaRegistration.RegisterAllAreas(); | ||
| GlobalConfiguration.Configure(WebApiConfig.Register); | ||
| RouteConfig.RegisterRoutes(RouteTable.Routes); | ||
| } | ||
| } | ||
| } |
| @@ -0,0 +1,36 @@ | ||
| using System.Reflection; | ||
| using System.Runtime.CompilerServices; | ||
| using System.Runtime.InteropServices; | ||
|
|
||
| // General Information about an assembly is controlled through the following | ||
| // set of attributes. Change these attribute values to modify the information | ||
| // associated with an assembly. | ||
| [assembly: AssemblyTitle("test")] | ||
| [assembly: AssemblyDescription("")] | ||
| [assembly: AssemblyConfiguration("")] | ||
| [assembly: AssemblyCompany("")] | ||
| [assembly: AssemblyProduct("test")] | ||
| [assembly: AssemblyCopyright("Copyright © 2018")] | ||
| [assembly: AssemblyTrademark("")] | ||
| [assembly: AssemblyCulture("")] | ||
|
|
||
| // Setting ComVisible to false makes the types in this assembly not visible | ||
| // to COM components. If you need to access a type in this assembly from | ||
| // COM, set the ComVisible attribute to true on that type. | ||
| [assembly: ComVisible(false)] | ||
|
|
||
| // The following GUID is for the ID of the typelib if this project is exposed to COM | ||
| [assembly: Guid("6F545FA5-AA27-431F-AE45-64617E2CBEF5")] | ||
|
|
||
| // Version information for an assembly consists of the following four values: | ||
| // | ||
| // Major Version | ||
| // Minor Version | ||
| // Build Number | ||
| // Revision | ||
| // | ||
| // You can specify all the values or you can default the Build and Revision Numbers | ||
| // by using the '*' as shown below: | ||
| // [assembly: AssemblyVersion("1.0.*")] | ||
| [assembly: AssemblyVersion("1.0.0.0")] | ||
| [assembly: AssemblyFileVersion("1.0.0.0")] |
| @@ -0,0 +1 @@ | ||
| // Write your Javascript code. |
| @@ -0,0 +1,7 @@ | ||
| @{ | ||
| ViewBag.Title = "About"; | ||
| } | ||
| <h2>@ViewBag.Title.</h2> | ||
| <h3>@ViewBag.Message</h3> | ||
|
|
||
| <p>Use this area to provide additional information.</p> |
| @@ -0,0 +1,5 @@ | ||
| @{ | ||
| ViewBag.Title = "Contact"; | ||
| } | ||
| <h2>@ViewBag.Title.</h2> | ||
| <h3>@ViewBag.Message</h3> |
| @@ -0,0 +1,31 @@ | ||
| @{ | ||
| ViewBag.Title = "Home Page"; | ||
| } | ||
|
|
||
| <div class="jumbotron"> | ||
| <h1>ASP.NET</h1> | ||
| <p class="lead">ASP.NET is a free web framework for building great Web sites and Web applications using HTML, CSS and JavaScript.</p> | ||
| <p><a href="http://asp.net" class="btn btn-primary btn-lg">Learn more »</a></p> | ||
| </div> | ||
|
|
||
| <div class="row"> | ||
| <div class="col-md-4"> | ||
| <h2>Getting started</h2> | ||
| <p> | ||
| ASP.NET MVC gives you a powerful, patterns-based way to build dynamic websites that | ||
| enables a clean separation of concerns and gives you full control over markup | ||
| for enjoyable, agile development. | ||
| </p> | ||
| <p><a class="btn btn-default" href="http://go.microsoft.com/fwlink/?LinkId=301865">Learn more »</a></p> | ||
| </div> | ||
| <div class="col-md-4"> | ||
| <h2>Get more libraries</h2> | ||
| <p>NuGet is a free Visual Studio extension that makes it easy to add, remove, and update libraries and tools in Visual Studio projects.</p> | ||
| <p><a class="btn btn-default" href="http://go.microsoft.com/fwlink/?LinkId=301866">Learn more »</a></p> | ||
| </div> | ||
| <div class="col-md-4"> | ||
| <h2>Web Hosting</h2> | ||
| <p>You can easily find a web hosting company that offers the right mix of features and price for your applications.</p> | ||
| <p><a class="btn btn-default" href="http://go.microsoft.com/fwlink/?LinkId=301867">Learn more »</a></p> | ||
| </div> | ||
| </div> |
| @@ -0,0 +1,5 @@ | ||
| @model System.Web.Mvc.HandleErrorInfo | ||
|
|
||
| <div> | ||
| <h2>An error occurred while processing your request.</h2> | ||
| </div> |
| @@ -0,0 +1,48 @@ | ||
| <!DOCTYPE html> | ||
| <html> | ||
| <head> | ||
| <meta charset="utf-8" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
| <title>@ViewData["Title"] - WebApplication</title> | ||
| <link rel="stylesheet" href="~/Content/site.css" /> | ||
| <link rel="stylesheet" href="~/Content/bootstrap.css" /> | ||
| <link rel="stylesheet" href="~/Content/bootstrap-theme.css" /> | ||
| </head> | ||
| <body> | ||
| <div class="navbar navbar-inverse navbar-fixed-top"> | ||
| <div class="container"> | ||
| <div class="navbar-header"> | ||
| <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> | ||
| <span class="sr-only">Toggle navigation</span> | ||
| <span class="icon-bar"></span> | ||
| <span class="icon-bar"></span> | ||
| <span class="icon-bar"></span> | ||
| </button> | ||
| @Html.ActionLink("test", "Index", "Home", null, new { @class = "navbar-brand" }) | ||
| </div> | ||
| <div class="navbar-collapse collapse"> | ||
| <ul class="nav navbar-nav"> | ||
| <li>@Html.ActionLink("Home", "Index", "Home")</li> | ||
| <li>@Html.ActionLink("About", "About", "Home")</li> | ||
| <li>@Html.ActionLink("Contact", "Contact", "Home")</li> | ||
| </ul> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| <div class="container body-content"> | ||
| @RenderBody() | ||
| <hr /> | ||
| <footer> | ||
| <p>© 2016 - test</p> | ||
| </footer> | ||
| </div> | ||
|
|
||
| <environment names="Development"> | ||
| <script src="~/Scripts/jquery-1.9.1.js"></script> | ||
| <script src="~/Scripts/bootstrap.js"></script> | ||
| <script src="~/Scripts/site.js" ></script> | ||
| </environment> | ||
|
|
||
| @RenderSection("scripts", required: false) | ||
| </body> | ||
| </html> |
| @@ -0,0 +1,30 @@ | ||
| <?xml version="1.0"?> | ||
| <configuration> | ||
| <configSections> | ||
| <sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> | ||
| <section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" /> | ||
| <section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" /> | ||
| </sectionGroup> | ||
| </configSections> | ||
| <system.web.webPages.razor> | ||
| <host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> | ||
| <pages pageBaseType="System.Web.Mvc.WebViewPage"> | ||
| <namespaces> | ||
| <add namespace="System.Web.Mvc" /> | ||
| <add namespace="System.Web.Mvc.Ajax" /> | ||
| <add namespace="System.Web.Mvc.Html" /> | ||
| <add namespace="System.Web.Routing" /> | ||
| <add namespace="test" /> | ||
| </namespaces> | ||
| </pages> | ||
| </system.web.webPages.razor> | ||
| <appSettings> | ||
| <add key="webpages:Enabled" value="false" /> | ||
| </appSettings> | ||
| <system.webServer> | ||
| <handlers> | ||
| <remove name="BlockViewHandler" /> | ||
| <add name="BlockViewHandler" path="*" verb="*" preCondition="integratedMode" type="System.Web.HttpNotFoundHandler" /> | ||
| </handlers> | ||
| </system.webServer> | ||
| </configuration> |
| @@ -0,0 +1,3 @@ | ||
| @{ | ||
| Layout = "~/Views/Shared/_Layout.cshtml"; | ||
| } |
| @@ -0,0 +1,32 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!-- | ||
| Web.config file for test. | ||
| The settings that can be used in this file are documented at | ||
| http://www.mono-project.com/Config_system.web and | ||
| http://msdn2.microsoft.com/en-us/library/b5ysx397.aspx | ||
| --> | ||
| <configuration> | ||
| <system.web> | ||
| <compilation debug="true" targetFramework="4.5"> | ||
| <assemblies /> | ||
| </compilation> | ||
| <httpRuntime targetFramework="4.5" /> | ||
| </system.web> | ||
| <runtime> | ||
| <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> | ||
| <dependentAssembly> | ||
| <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" /> | ||
| <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" /> | ||
| </dependentAssembly> | ||
| <dependentAssembly> | ||
| <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" /> | ||
| <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" /> | ||
| </dependentAssembly> | ||
| <dependentAssembly> | ||
| <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" /> | ||
| <bindingRedirect oldVersion="1.0.0.0-5.2.3.0" newVersion="5.2.3.0" /> | ||
| </dependentAssembly> | ||
| </assemblyBinding> | ||
| </runtime> | ||
| </configuration> |
| @@ -0,0 +1,14 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <packages> | ||
| <package id="bootstrap" version="3.3.7" targetFramework="net45" /> | ||
| <package id="jQuery" version="1.9.1" targetFramework="net45" /> | ||
| <package id="Microsoft.AspNet.Mvc" version="5.2.3" targetFramework="net45" /> | ||
| <package id="Microsoft.AspNet.Razor" version="3.2.3" targetFramework="net45" /> | ||
| <package id="Microsoft.AspNet.WebApi" version="5.2.3" targetFramework="net45" /> | ||
| <package id="Microsoft.AspNet.WebApi.Client" version="5.2.3" targetFramework="net45" /> | ||
| <package id="Microsoft.AspNet.WebApi.Core" version="5.2.3" targetFramework="net45" /> | ||
| <package id="Microsoft.AspNet.WebApi.WebHost" version="5.2.3" targetFramework="net45" /> | ||
| <package id="Microsoft.AspNet.WebPages" version="3.2.3" targetFramework="net45" /> | ||
| <package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net45" /> | ||
| <package id="Newtonsoft.Json" version="6.0.4" targetFramework="net45" /> | ||
| </packages> |
| @@ -0,0 +1,135 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
| <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | ||
| <PropertyGroup> | ||
| <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
| <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
| <ProjectGuid>{6F545FA5-AA27-431F-AE45-64617E2CBEF5}</ProjectGuid> | ||
| <ProjectTypeGuids>{349C5851-65DF-11DA-9384-00065B846F21};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> | ||
| <OutputType>Library</OutputType> | ||
| <AppDesignerFolder>Properties</AppDesignerFolder> | ||
| <RootNamespace>test</RootNamespace> | ||
| <AssemblyName>test</AssemblyName> | ||
| <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> | ||
| <FileAlignment>512</FileAlignment> | ||
| </PropertyGroup> | ||
| <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
| <PlatformTarget>AnyCPU</PlatformTarget> | ||
| <DebugSymbols>true</DebugSymbols> | ||
| <DebugType>full</DebugType> | ||
| <Optimize>false</Optimize> | ||
| <OutputPath>bin\</OutputPath> | ||
| <DefineConstants>DEBUG;TRACE</DefineConstants> | ||
| <ErrorReport>prompt</ErrorReport> | ||
| <WarningLevel>4</WarningLevel> | ||
| </PropertyGroup> | ||
| <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
| <PlatformTarget>AnyCPU</PlatformTarget> | ||
| <DebugType>pdbonly</DebugType> | ||
| <Optimize>true</Optimize> | ||
| <OutputPath>bin\</OutputPath> | ||
| <DefineConstants>TRACE</DefineConstants> | ||
| <ErrorReport>prompt</ErrorReport> | ||
| <WarningLevel>4</WarningLevel> | ||
| </PropertyGroup> | ||
| <ItemGroup> | ||
| <Reference Include="Microsoft.CSharp" /> | ||
| <Reference Include="Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"> | ||
| <HintPath>..\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll</HintPath> | ||
| </Reference> | ||
| <Reference Include="Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed"> | ||
| <HintPath>..\packages\Newtonsoft.Json.6.0.4\lib\net45\Newtonsoft.Json.dll</HintPath> | ||
| </Reference> | ||
| <Reference Include="System" /> | ||
| <Reference Include="System.Core" /> | ||
| <Reference Include="System.Data" /> | ||
| <Reference Include="System.Net.Http" /> | ||
| <Reference Include="System.Net.Http.Formatting, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"> | ||
| <HintPath>..\packages\Microsoft.AspNet.WebApi.Client.5.2.3\lib\net45\System.Net.Http.Formatting.dll</HintPath> | ||
| </Reference> | ||
| <Reference Include="System.Web" /> | ||
| <Reference Include="System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"> | ||
| <HintPath>..\packages\Microsoft.AspNet.WebApi.Core.5.2.3\lib\net45\System.Web.Http.dll</HintPath> | ||
| </Reference> | ||
| <Reference Include="System.Web.Http.WebHost, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"> | ||
| <HintPath>..\packages\Microsoft.AspNet.WebApi.WebHost.5.2.3\lib\net45\System.Web.Http.WebHost.dll</HintPath> | ||
| </Reference> | ||
| <Reference Include="System.Web.Services" /> | ||
| <Reference Include="System.Web.Routing" /> | ||
| <Reference Include="System.Web.Extensions" /> | ||
| <Reference Include="System.Web.Abstractions" /> | ||
| <Reference Include="System.Web.DynamicData" /> | ||
| <Reference Include="System.Web.Helpers, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"> | ||
| <HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.Helpers.dll</HintPath> | ||
| </Reference> | ||
| <Reference Include="System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"> | ||
| <HintPath>..\packages\Microsoft.AspNet.Mvc.5.2.3\lib\net45\System.Web.Mvc.dll</HintPath> | ||
| </Reference> | ||
| <Reference Include="System.Web.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"> | ||
| <HintPath>..\packages\Microsoft.AspNet.Razor.3.2.3\lib\net45\System.Web.Razor.dll</HintPath> | ||
| </Reference> | ||
| <Reference Include="System.Web.WebPages, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"> | ||
| <HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.dll</HintPath> | ||
| </Reference> | ||
| <Reference Include="System.Web.WebPages.Deployment, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"> | ||
| <HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.Deployment.dll</HintPath> | ||
| </Reference> | ||
| <Reference Include="System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"> | ||
| <HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.Razor.dll</HintPath> | ||
| </Reference> | ||
| <Reference Include="System.Xml" /> | ||
| </ItemGroup> | ||
| <ItemGroup> | ||
| <Compile Include="App_Start\RouteConfig.cs" /> | ||
| <Compile Include="App_Start\WebApiConfig.cs" /> | ||
| <Compile Include="Controllers\HomeController.cs" /> | ||
| <Compile Include="Global.asax.cs" /> | ||
| <Compile Include="Properties\AssemblyInfo.cs" /> | ||
| </ItemGroup> | ||
| <ItemGroup> | ||
| <Content Include="Content\bootstrap-theme.css" /> | ||
| <Content Include="Content\bootstrap-theme.css.map" /> | ||
| <Content Include="Content\bootstrap-theme.min.css" /> | ||
| <Content Include="Content\bootstrap-theme.min.css.map" /> | ||
| <Content Include="Content\bootstrap.css" /> | ||
| <Content Include="Content\bootstrap.css.map" /> | ||
| <Content Include="Content\bootstrap.min.css" /> | ||
| <Content Include="Content\bootstrap.min.css.map" /> | ||
| <Content Include="Content\site.css" /> | ||
| <Content Include="favicon.ico" /> | ||
| <Content Include="fonts\glyphicons-halflings-regular.eot" /> | ||
| <Content Include="fonts\glyphicons-halflings-regular.svg" /> | ||
| <Content Include="fonts\glyphicons-halflings-regular.ttf" /> | ||
| <Content Include="fonts\glyphicons-halflings-regular.woff" /> | ||
| <Content Include="fonts\glyphicons-halflings-regular.woff2" /> | ||
| <Content Include="Global.asax" /> | ||
| <Content Include="packages.config" /> | ||
| <Content Include="Scripts\bootstrap.js" /> | ||
| <Content Include="Scripts\bootstrap.min.js" /> | ||
| <Content Include="Scripts\jquery-1.9.1-vsdoc.js" /> | ||
| <Content Include="Scripts\jquery-1.9.1.js" /> | ||
| <Content Include="Scripts\jquery-1.9.1.min.js" /> | ||
| <Content Include="Scripts\jquery-1.9.1.min.map" /> | ||
| <Content Include="Scripts\site.js" /> | ||
| <Content Include="Views\Home\About.cshtml" /> | ||
| <Content Include="Views\Home\Contact.cshtml" /> | ||
| <Content Include="Views\Home\Index.cshtml" /> | ||
| <Content Include="Views\Shared\Error.cshtml" /> | ||
| <Content Include="Views\Shared\_Layout.cshtml" /> | ||
| <Content Include="Views\Web.config" /> | ||
| <Content Include="Views\_ViewStart.cshtml" /> | ||
| <Content Include="Web.config" /> | ||
| </ItemGroup> | ||
| <ItemGroup> | ||
| <Folder Include="Content" /> | ||
| <Folder Include="Models" /> | ||
| </ItemGroup> | ||
| <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | ||
| <!-- To modify your build process, add your task inside one of the targets below and uncomment it. | ||
| Other similar extension points exist, see Microsoft.Common.targets. | ||
| <Target Name="BeforeBuild"> | ||
| </Target> | ||
| <Target Name="AfterBuild"> | ||
| </Target> | ||
| --> | ||
| </Project> |