fix msbuild package for msbuild running on framework
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netstandard2.0</TargetFramework>
|
||||
<TargetFrameworks>netstandard2.0;net472</TargetFrameworks>
|
||||
<LangVersion>latest</LangVersion>
|
||||
<Nullable>enable</Nullable>
|
||||
<!-- This property tells MSBuild where the root folder of the package's build assets should be. Because we are not a library package, we should not pack to 'lib'. Instead, we choose 'tasks' by convention. -->
|
||||
@@ -10,7 +10,7 @@
|
||||
<NoWarn>NU5100</NoWarn>
|
||||
<DebugType>embedded</DebugType>
|
||||
<IsPackable>true</IsPackable>
|
||||
<Version>1.0.0</Version>
|
||||
<Version>1.0.2</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
@@ -1,12 +1,15 @@
|
||||
<Project>
|
||||
<PropertyGroup>
|
||||
<!--The folder where the custom task will be present. It points to inside the NuGet package. -->
|
||||
<CustomTasksFolder>$(MSBuildThisFileDirectory)..\tasks\netstandard2.0</CustomTasksFolder>
|
||||
<CustomTasksFolderCore>$(MSBuildThisFileDirectory)..\tasks\netstandard2.0</CustomTasksFolderCore>
|
||||
<CustomTasksFolderFull>$(MSBuildThisFileDirectory)..\tasks\net472</CustomTasksFolderFull>
|
||||
<!--Reference to the assembly which contains the MSBuild Task-->
|
||||
<CustomTasksAssembly>$(CustomTasksFolder)\$(MSBuildThisFileName).dll</CustomTasksAssembly>
|
||||
<CustomTasksAssemblyCore>$(CustomTasksFolderCore)\$(MSBuildThisFileName).dll</CustomTasksAssemblyCore>
|
||||
<CustomTasksAssemblyFull>$(CustomTasksFolderFull)\$(MSBuildThisFileName).dll</CustomTasksAssemblyFull>
|
||||
</PropertyGroup>
|
||||
|
||||
<UsingTask TaskName="$(MSBuildThisFileName).GenerateRunConfig" AssemblyFile="$(CustomTasksAssembly)" />
|
||||
<UsingTask TaskName="$(MSBuildThisFileName).GenerateRunConfig" AssemblyFile="$(CustomTasksAssemblyCore)" Condition=" '$(MSBuildRuntimeType)' == 'Core' " />
|
||||
<UsingTask TaskName="$(MSBuildThisFileName).GenerateRunConfig" AssemblyFile="$(CustomTasksAssemblyFull)" Condition=" '$(MSBuildRuntimeType)' != 'Core' " />
|
||||
|
||||
<PropertyGroup>
|
||||
<RunConfigPath Condition="'$(RunConfigPath)' == ''">$(ProjectDir)Properties\launchSettings.json</RunConfigPath>
|
||||
|
Reference in New Issue
Block a user