Microsoft.VisualStudio.Web.CodeGeneration.Tools
Advanced tools
| <!-- | ||
| Copyright (c) .NET Foundation. All rights reserved. | ||
| Licensed under the Apache License, Version 2.0. | ||
| --> | ||
| <Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
| <!-- | ||
| ********************************************************************************** | ||
| Target: EvaluateProjectInfoForCodeGeneration | ||
| Outputs the Project Information needed for CodeGeneration to a file. | ||
| ********************************************************************************** | ||
| --> | ||
| <PropertyGroup> | ||
| <EvaluateProjectInfoForCodeGenerationDependsOn> | ||
| $(EvaluateProjectInfoForCodeGenerationDependsOn); | ||
| ResolveReferences; | ||
| ResolvePackageDependenciesDesignTime; | ||
| </EvaluateProjectInfoForCodeGenerationDependsOn> | ||
| </PropertyGroup> | ||
| <Choose> | ||
| <!-- For Portable Msbuild, MSBuildRuntimeType = 'Core'. For Desktop MsBuild, MSBuildRuntimeType = 'Full'--> | ||
| <When Condition="'$(MSBuildRuntimeType)' == 'Core'"> | ||
| <PropertyGroup > | ||
| <EvaluateProjectInfoForCodeGenerationAssemblyPath>$(MSBuildThisFileDirectory)\..\..\toolassets\netcoreapp1.0\Microsoft.VisualStudio.Web.CodeGeneration.Msbuild.dll</EvaluateProjectInfoForCodeGenerationAssemblyPath> | ||
| </PropertyGroup> | ||
| </When> | ||
| <Otherwise> | ||
| <PropertyGroup > | ||
| <EvaluateProjectInfoForCodeGenerationAssemblyPath>$(MSBuildThisFileDirectory)\..\..\toolassets\net46\Microsoft.VisualStudio.Web.CodeGeneration.Msbuild.dll</EvaluateProjectInfoForCodeGenerationAssemblyPath> | ||
| </PropertyGroup> | ||
| </Otherwise> | ||
| </Choose> | ||
| <UsingTask TaskName="ProjectContextWriter" | ||
| AssemblyFile="$(EvaluateProjectInfoForCodeGenerationAssemblyPath)" /> | ||
| <Target Name="EvaluateProjectInfoForCodeGeneration" DependsOnTargets="$(EvaluateProjectInfoForCodeGenerationDependsOn)"> | ||
| <ProjectContextWriter TargetFramework ="$(TargetFramework)" | ||
| OutputFile ="$(OutputFile)" | ||
| Name ="$(ProjectName)" | ||
| ResolvedReferences ="@(ReferencePath)" | ||
| PackageDependencies ="@(_DependenciesDesignTime)" | ||
| ProjectReferences ="@(ProjectReference)" | ||
| AssemblyFullPath ="$(TargetPath)" | ||
| OutputType="$(OutputType)" | ||
| Platform="$(Platform)" | ||
| RootNameSpace ="$(RootNamespace)" | ||
| CompilationItems ="@(Compile)" | ||
| TargetDirectory="$(TargetDir)" | ||
| EmbeddedItems="@(EmbeddedResource)" | ||
| Configuration="$(Configuration)" | ||
| ProjectFullPath="$(MSBuildProjectFullPath)" | ||
| ProjectDepsFileName="$(ProjectDepsFileName)" | ||
| ProjectRuntimeConfigFileName="$(ProjectRuntimeConfigFileName)"/> | ||
| </Target> | ||
| </Project> |
| <!-- | ||
| Copyright (c) .NET Foundation. All rights reserved. | ||
| Licensed under the Apache License, Version 2.0. | ||
| --> | ||
| <Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
| <!-- | ||
| ********************************************************************************** | ||
| Target: EvaluateProjectInfoForCodeGeneration | ||
| Outputs the Project Information needed for CodeGeneration to a file. | ||
| ********************************************************************************** | ||
| --> | ||
| <UsingTask TaskName="GetNearestTargetFramework" AssemblyFile="$(MicrosoftNETBuildTasksAssembly)" /> | ||
| <Target Name="EvaluateProjectInfoForCodeGeneration" DependsOnTargets="$(EvaluateProjectInfoForCodeGenerationDependsOn)"> | ||
| <GetNearestTargetFramework ReferringTargetFramework="netcoreapp1.0" | ||
| PossibleTargetFrameworks="$(TargetFrameworks)" | ||
| ProjectFilePath="$(MSBuildProjectFullPath)" | ||
| ContinueOnError="WarnAndContinue"> | ||
| <Output PropertyName="NearestTargetFramework" TaskParameter="NearestTargetFramework" /> | ||
| </GetNearestTargetFramework> | ||
| <GetNearestTargetFramework ReferringTargetFramework="net451" | ||
| PossibleTargetFrameworks="$(TargetFrameworks)" | ||
| ProjectFilePath="$(MSBuildProjectFullPath)" | ||
| Condition=" '$(NearestTargetFramework)' == '' " | ||
| ContinueOnError="WarnAndContinue"> | ||
| <Output PropertyName="NearestTargetFramework" TaskParameter="NearestTargetFramework" /> | ||
| </GetNearestTargetFramework> | ||
| <!-- | ||
| If the project doesn't have any compatible framework for scaffolding to run, fail early. | ||
| --> | ||
| <Error Text="No compatible framework was found for scaffolding." | ||
| Condition=" '$(NearestTargetFramework)' == '' " /> | ||
| <MSBuild Projects="$(MSBuildProjectFile)" | ||
| Targets="EvaluateProjectInfoForCodeGeneration" | ||
| Properties="TargetFramework=$(NearestTargetFramework);OutputFile=$(OutputFile)" /> | ||
| </Target> | ||
| </Project> |
Sorry, the diff of this file is not supported yet
@@ -5,8 +5,8 @@ <?xml version="1.0" encoding="utf-8"?> | ||
| <Default Extension="psmdcp" ContentType="application/vnd.openxmlformats-package.core-properties+xml" /> | ||
| <Default Extension="json" ContentType="application/octet" /> | ||
| <Default Extension="dll" ContentType="application/octet" /> | ||
| <Default Extension="xml" ContentType="application/octet" /> | ||
| <Default Extension="targets" ContentType="application/octet" /> | ||
| <Default Extension="json" ContentType="application/octet" /> | ||
| <Default Extension="nuspec" ContentType="application/octet" /> | ||
| <Override PartName="/prefercliruntime" ContentType="application/octet" /> | ||
| </Types> |
@@ -5,5 +5,5 @@ { | ||
| "name": "Microsoft.NETCore.App", | ||
| "version": "1.0.5" | ||
| "version": "1.0.0" | ||
| } | ||
| } | ||
| } |
@@ -5,3 +5,3 @@ <?xml version="1.0" encoding="utf-8"?> | ||
| <id>Microsoft.VisualStudio.Web.CodeGeneration.Tools</id> | ||
| <version>1.0.1</version> | ||
| <version>1.0.0</version> | ||
| <authors>Microsoft</authors> | ||
@@ -20,3 +20,2 @@ <owners>Microsoft</owners> | ||
| <group targetFramework=".NETCoreApp1.0"> | ||
| <dependency id="Microsoft.NETCore.App" version="1.0.5" exclude="Build,Analyzers" /> | ||
| <dependency id="Microsoft.Build.Runtime" version="15.1.548" exclude="Build,Analyzers" /> | ||
@@ -29,2 +28,3 @@ <dependency id="Microsoft.DotNet.InternalAbstractions" version="1.0.0" exclude="Build,Analyzers" /> | ||
| <dependency id="NuGet.Frameworks" version="3.5.0" exclude="Build,Analyzers" /> | ||
| <dependency id="Microsoft.NETCore.App" version="1.0.0" exclude="Build,Analyzers" /> | ||
| </group> | ||
@@ -31,0 +31,0 @@ </dependencies> |
| <!-- | ||
| Copyright (c) .NET Foundation. All rights reserved. | ||
| Licensed under the Apache License, Version 2.0. | ||
| --> | ||
| <Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
| <!-- | ||
| ********************************************************************************** | ||
| Target: EvaluateProjectInfoForCodeGeneration | ||
| Outputs the Project Information needed for CodeGeneration to a file. | ||
| ********************************************************************************** | ||
| --> | ||
| <PropertyGroup> | ||
| <EvaluateProjectInfoForCodeGenerationDependsOn> | ||
| $(EvaluateProjectInfoForCodeGenerationDependsOn); | ||
| ResolveReferences; | ||
| ResolvePackageDependenciesDesignTime; | ||
| </EvaluateProjectInfoForCodeGenerationDependsOn> | ||
| </PropertyGroup> | ||
| <Choose> | ||
| <!-- For Portable Msbuild, MSBuildRuntimeType = 'Core'. For Desktop MsBuild, MSBuildRuntimeType = 'Full'--> | ||
| <When Condition="'$(MSBuildRuntimeType)' == 'Core'"> | ||
| <PropertyGroup > | ||
| <EvaluateProjectInfoForCodeGenerationAssemblyPath>$(MSBuildThisFileDirectory)\..\..\toolassets\netcoreapp1.0\Microsoft.VisualStudio.Web.CodeGeneration.Msbuild.dll</EvaluateProjectInfoForCodeGenerationAssemblyPath> | ||
| </PropertyGroup> | ||
| </When> | ||
| <Otherwise> | ||
| <PropertyGroup > | ||
| <EvaluateProjectInfoForCodeGenerationAssemblyPath>$(MSBuildThisFileDirectory)\..\..\toolassets\net46\Microsoft.VisualStudio.Web.CodeGeneration.Msbuild.dll</EvaluateProjectInfoForCodeGenerationAssemblyPath> | ||
| </PropertyGroup> | ||
| </Otherwise> | ||
| </Choose> | ||
| <UsingTask TaskName="ProjectContextWriter" | ||
| AssemblyFile="$(EvaluateProjectInfoForCodeGenerationAssemblyPath)" /> | ||
| <Target Name="EvaluateProjectInfoForCodeGeneration" DependsOnTargets="$(EvaluateProjectInfoForCodeGenerationDependsOn)"> | ||
| <ProjectContextWriter TargetFramework ="$(TargetFramework)" | ||
| OutputFile ="$(OutputFile)" | ||
| Name ="$(ProjectName)" | ||
| ResolvedReferences ="@(ReferencePath)" | ||
| PackageDependencies ="@(_DependenciesDesignTime)" | ||
| ProjectReferences ="@(ProjectReference)" | ||
| AssemblyFullPath ="$(TargetPath)" | ||
| OutputType="$(OutputType)" | ||
| Platform="$(Platform)" | ||
| RootNameSpace ="$(RootNamespace)" | ||
| CompilationItems ="@(Compile)" | ||
| TargetDirectory="$(TargetDir)" | ||
| EmbeddedItems="@(EmbeddedResource)" | ||
| Configuration="$(Configuration)" | ||
| ProjectFullPath="$(MSBuildProjectFullPath)" | ||
| ProjectDepsFileName="$(ProjectDepsFileName)" | ||
| ProjectRuntimeConfigFileName="$(ProjectRuntimeConfigFileName)"/> | ||
| </Target> | ||
| </Project> |
| <!-- | ||
| Copyright (c) .NET Foundation. All rights reserved. | ||
| Licensed under the Apache License, Version 2.0. | ||
| --> | ||
| <Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
| <!-- | ||
| ********************************************************************************** | ||
| Target: EvaluateProjectInfoForCodeGeneration | ||
| Outputs the Project Information needed for CodeGeneration to a file. | ||
| ********************************************************************************** | ||
| --> | ||
| <UsingTask TaskName="GetNearestTargetFramework" AssemblyFile="$(MicrosoftNETBuildTasksAssembly)" /> | ||
| <Target Name="EvaluateProjectInfoForCodeGeneration" DependsOnTargets="$(EvaluateProjectInfoForCodeGenerationDependsOn)"> | ||
| <GetNearestTargetFramework ReferringTargetFramework="netcoreapp1.0" | ||
| PossibleTargetFrameworks="$(TargetFrameworks)" | ||
| ProjectFilePath="$(MSBuildProjectFullPath)" | ||
| ContinueOnError="WarnAndContinue"> | ||
| <Output PropertyName="NearestTargetFramework" TaskParameter="NearestTargetFramework" /> | ||
| </GetNearestTargetFramework> | ||
| <GetNearestTargetFramework ReferringTargetFramework="net451" | ||
| PossibleTargetFrameworks="$(TargetFrameworks)" | ||
| ProjectFilePath="$(MSBuildProjectFullPath)" | ||
| Condition=" '$(NearestTargetFramework)' == '' " | ||
| ContinueOnError="WarnAndContinue"> | ||
| <Output PropertyName="NearestTargetFramework" TaskParameter="NearestTargetFramework" /> | ||
| </GetNearestTargetFramework> | ||
| <!-- | ||
| If the project doesn't have any compatible framework for scaffolding to run, fail early. | ||
| --> | ||
| <Error Text="No compatible framework was found for scaffolding." | ||
| Condition=" '$(NearestTargetFramework)' == '' " /> | ||
| <MSBuild Projects="$(MSBuildProjectFile)" | ||
| Targets="EvaluateProjectInfoForCodeGeneration" | ||
| Properties="TargetFramework=$(NearestTargetFramework);OutputFile=$(OutputFile)" /> | ||
| </Target> | ||
| </Project> |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet