fix msbuild package for msbuild running on framework

This commit is contained in:
zznty
2025-08-04 02:02:03 +07:00
parent 985a7407ab
commit 65d71b1730
4 changed files with 53 additions and 89 deletions

View File

@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework> <TargetFrameworks>netstandard2.0;net472</TargetFrameworks>
<LangVersion>latest</LangVersion> <LangVersion>latest</LangVersion>
<Nullable>enable</Nullable> <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. --> <!-- 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> <NoWarn>NU5100</NoWarn>
<DebugType>embedded</DebugType> <DebugType>embedded</DebugType>
<IsPackable>true</IsPackable> <IsPackable>true</IsPackable>
<Version>1.0.0</Version> <Version>1.0.2</Version>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>

View File

@@ -1,12 +1,15 @@
<Project> <Project>
<PropertyGroup> <PropertyGroup>
<!--The folder where the custom task will be present. It points to inside the NuGet package. --> <!--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--> <!--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> </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> <PropertyGroup>
<RunConfigPath Condition="'$(RunConfigPath)' == ''">$(ProjectDir)Properties\launchSettings.json</RunConfigPath> <RunConfigPath Condition="'$(RunConfigPath)' == ''">$(ProjectDir)Properties\launchSettings.json</RunConfigPath>

View File

@@ -13,8 +13,8 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="CringePlugins" Version="0.1.95" ExcludeAssets="runtime; native" /> <PackageReference Include="CringePlugins" Version="*" ExcludeAssets="runtime; native" />
<PackageReference Include="CringePlugins.MSBuild" Version="1.0.0" PrivateAssets="All" /> <PackageReference Include="CringePlugins.MSBuild" Version="*" PrivateAssets="All" />
<PackageReference Include="NodaTime" Version="3.2.2" /> <PackageReference Include="NodaTime" Version="3.2.2" />
</ItemGroup> </ItemGroup>

View File

@@ -4,28 +4,28 @@
"net9.0-windows7.0": { "net9.0-windows7.0": {
"CringePlugins": { "CringePlugins": {
"type": "Direct", "type": "Direct",
"requested": "[0.1.95, )", "requested": "[*, )",
"resolved": "0.1.95", "resolved": "0.1.97",
"contentHash": "NJqt+nKnqws2xsG7sLMFN372bzaGApqVpp9XqEEMRfoTUZFt7VLpHfaOpwQwUfxA1XI9uYV4Jp6cwQ0hhpJZeQ==", "contentHash": "YuZtT8O4g1F5yLfOjQ8xwYeDbUkf9R6myN04c6csXQdZjqb9hYnEG4hJF50cWfY4uYMGJntZbakBxlX3lKbzAQ==",
"dependencies": { "dependencies": {
"ImGui.NET.DirectX": "1.91.0.1", "ImGui.NET.DirectX": "1.92.1.2",
"JsonSchema.Net.Generation": "5.0.2", "JsonSchema.Net.Generation": "5.0.4",
"Lib.Harmony.Thin": "2.3.4-torch", "Lib.Harmony.Thin": "2.3.4-torch",
"Microsoft.Extensions.DependencyInjection.Abstractions": "9.0.5", "Microsoft.Extensions.DependencyInjection.Abstractions": "9.0.7",
"NLog": "5.4.0", "NLog": "6.0.2",
"Newtonsoft.Json": "13.0.3", "Newtonsoft.Json": "13.0.3",
"NuGet": "0.1.95", "NuGet": "0.1.97",
"SharedCringe": "0.1.95", "SharedCringe": "0.1.97",
"SpaceEngineersDedicated.ReferenceAssemblies": "1.206.32", "SpaceEngineersDedicated.ReferenceAssemblies": "1.206.32",
"Steamworks.NET": "[20.1.0]", "Steamworks.NET": "[20.1.0]",
"dnlib": "4.4.0" "dnlib": "4.5.0"
} }
}, },
"CringePlugins.MSBuild": { "CringePlugins.MSBuild": {
"type": "Direct", "type": "Direct",
"requested": "[1.0.0, )", "requested": "[*, )",
"resolved": "1.0.0", "resolved": "1.0.2",
"contentHash": "bEKiqpML0gQ1cLc4lGVnTW2zEVrrj3MmXdGGxCFhgfpq7MLUzOxbYUrE+7qwXVSjAJWs/hfZKrb+GxGW8t7F2A==" "contentHash": "IWuLObrVNxXkK5XzeKlWbAOANXyGWqnvkYZYi5S9J8TkqcxZ23zpNbv4GBLXKTZ+H5W43ZM1kNjBW7havxwVbg=="
}, },
"NodaTime": { "NodaTime": {
"type": "Direct", "type": "Direct",
@@ -35,13 +35,13 @@
}, },
"CringeBootstrap.Abstractions": { "CringeBootstrap.Abstractions": {
"type": "Transitive", "type": "Transitive",
"resolved": "0.1.95", "resolved": "0.1.97",
"contentHash": "WtWvvts9nTVAfGfZOAx+BQRLaXSNCGlLDXabsj574WYlkQ+hpPzZ8/Y3YVh0rTWXzrVYBs97u6hoID/Iy0aeAA==" "contentHash": "Qk+0PPBbf090PK5JHsNPGaKO+QqXxoKDzmIezjDk5TTUAgNQqkJktmTxKrerqOJu9OddDFzYrV1JkQvIYAPYbg=="
}, },
"dnlib": { "dnlib": {
"type": "Transitive", "type": "Transitive",
"resolved": "4.4.0", "resolved": "4.5.0",
"contentHash": "cKHI720q+zfEEvzklWVGt6B0TH3AibAyJbpUJl4U6KvTP13tycfnqJpkGHRZ/oQ45BTIoIxIwltHIJVDN+iCqQ==" "contentHash": "YkwstIbjyiJ12uGIAN8oSmImgVFkPHit7MJXPHvJqeKV1DMNqxZWszjHfykgiSs4Y/XmjnZts7pI2/AYme5/uA=="
}, },
"Humanizer.Core": { "Humanizer.Core": {
"type": "Transitive", "type": "Transitive",
@@ -50,13 +50,8 @@
}, },
"ImGui.NET.DirectX": { "ImGui.NET.DirectX": {
"type": "Transitive", "type": "Transitive",
"resolved": "1.91.0.1", "resolved": "1.92.1.2",
"contentHash": "PpW1gQ9g97h6Hm/h/tkSBOmsBYgGwN8wKNmlJomcQFD/zRY1HPkJZz18XRSfRLHPmH2eeh4hhhZv1KHug7dF9g==", "contentHash": "3n4qx0oWGlYHphHJ5a2/ernzasrsyE6RZ6NOxeACf3w/18qsqCVrXu2Xh9L0f4bwqq3eTTMNpV860yUHu1yiuw=="
"dependencies": {
"System.Buffers": "4.5.1",
"System.Numerics.Vectors": "4.5.0",
"System.Runtime.CompilerServices.Unsafe": "6.0.0"
}
}, },
"Json.More.Net": { "Json.More.Net": {
"type": "Transitive", "type": "Transitive",
@@ -82,8 +77,8 @@
}, },
"JsonSchema.Net.Generation": { "JsonSchema.Net.Generation": {
"type": "Transitive", "type": "Transitive",
"resolved": "5.0.2", "resolved": "5.0.4",
"contentHash": "+khIPgLqOyFOWjgHSzXMjJijwbQb85/cFRf4NwTaV6QBoGM9IT8LeLCnmwazruwKsx16HB1UFX3mslUujfjVpg==", "contentHash": "VNcQd95tHbpWRvKjRfWOjFXHRPKH+zMBEmrgQCavsDZYI3+zMjCyKXTtOScI2dMbYllgYbVu9aH7JHgluE1lpA==",
"dependencies": { "dependencies": {
"Humanizer.Core": "2.14.1", "Humanizer.Core": "2.14.1",
"JsonSchema.Net": "7.3.4" "JsonSchema.Net": "7.3.4"
@@ -94,19 +89,13 @@
"resolved": "2.3.4-torch", "resolved": "2.3.4-torch",
"contentHash": "UnLUnLLiXfHZdKa1zhi6w8cl8tJTrpVixLtvjFEVtlDA6Rkf06OcZ2gSidcbcgKjTcR+fk5Qsdos3mU5oohzfg==", "contentHash": "UnLUnLLiXfHZdKa1zhi6w8cl8tJTrpVixLtvjFEVtlDA6Rkf06OcZ2gSidcbcgKjTcR+fk5Qsdos3mU5oohzfg==",
"dependencies": { "dependencies": {
"MonoMod.Core": "1.2.2", "MonoMod.Core": "1.2.2"
"System.Text.Json": "9.0.0"
} }
}, },
"Microsoft.Bcl.AsyncInterfaces": {
"type": "Transitive",
"resolved": "6.0.0",
"contentHash": "UcSjPsst+DfAdJGVDsu346FX0ci0ah+lw3WRtn18NUwEqRt70HaOQ7lI72vy3+1LxtqI3T5GWwV39rQSrCzAeg=="
},
"Microsoft.Extensions.DependencyInjection.Abstractions": { "Microsoft.Extensions.DependencyInjection.Abstractions": {
"type": "Transitive", "type": "Transitive",
"resolved": "9.0.5", "resolved": "9.0.7",
"contentHash": "cjnRtsEAzU73aN6W7vkWy8Phj5t3Xm78HSqgrbh/O4Q9SK/yN73wZVa21QQY6amSLQRQ/M8N+koGnY6PuvKQsw==" "contentHash": "iPK1FxbGFr2Xb+4Y+dTYI8Gupu9pOi8I3JPuPsrogUmEhe2hzZ9LpCmolMEBhVDo2ikcSr7G5zYiwaapHSQTew=="
}, },
"Mono.Cecil": { "Mono.Cecil": {
"type": "Transitive", "type": "Transitive",
@@ -154,28 +143,28 @@
}, },
"NLog": { "NLog": {
"type": "Transitive", "type": "Transitive",
"resolved": "5.4.0", "resolved": "6.0.2",
"contentHash": "LwMcGSW3soF3/SL68rlJN3Eh3ktrAPycC3zZR/07OYBPraZUu0bygEC7kIN10lUQgMXT4s84Fi1chglGdGrQEg==" "contentHash": "kfjfjcjh/hHXLJ0TbEUH6ajb2jQFmwk/23nyYW9iPZ6cj5769SyeDTbUwGI7LSVUk5iTRJoC6CTKKmWrXK79oA=="
}, },
"NuGet": { "NuGet": {
"type": "Transitive", "type": "Transitive",
"resolved": "0.1.95", "resolved": "0.1.97",
"contentHash": "lur0hFJyeH2yuxDw5dbK5VS+kfP733RI55xJIH1Brzx1UhHsOGB7s4yEQdwLB0TXjtdaB/j0N5x9lp4VmtLcBA==", "contentHash": "zcQnc47jlYn7j85U1ho6+v0fzKWu3l8MEibsEbjkRMipvPb28sHS+LZ2MddVwfbQPDQygQ9mu4U8v3b0XToVkQ==",
"dependencies": { "dependencies": {
"NuGet.Frameworks": "6.13.2", "NuGet.Frameworks": "6.14.0",
"NuGet.Versioning": "6.13.2", "NuGet.Versioning": "6.14.0",
"System.Linq.Async": "6.0.1" "System.Linq.Async": "6.0.3"
} }
}, },
"NuGet.Frameworks": { "NuGet.Frameworks": {
"type": "Transitive", "type": "Transitive",
"resolved": "6.13.2", "resolved": "6.14.0",
"contentHash": "SQKUf56j7IdJL//fU7fcmn234awjRA2qLvgbfs/TxmY7oJrNOxaaDxASyCbS4eJW3LCOd6ONHMZ/cPlbQh4xVg==" "contentHash": "xZ37J58DQAkVUX29qoMwla26iBYRScdcfSGNe1FIZjCX1tpafN9n7TinrkRxaJqYzW0D8Ob8a3eRSYhwEUauCA=="
}, },
"NuGet.Versioning": { "NuGet.Versioning": {
"type": "Transitive", "type": "Transitive",
"resolved": "6.13.2", "resolved": "6.14.0",
"contentHash": "pGYNyvCVM+Z9jITTiJiuxFC8oJXFdh2k25ZDV4tSAOSuKyAWvh1VcfJy0WZGWdI6J7Avkbl0qra7XENYFSy4Ng==" "contentHash": "4v4blkhCv8mpKtfx+z0G/X0daVCzdIaHSC51GkUspugi5JIMn2Bo8xm5PdZYF0U68gOBfz/+aPWMnpRd85Jbow=="
}, },
"protobuf-net": { "protobuf-net": {
"type": "Transitive", "type": "Transitive",
@@ -184,11 +173,11 @@
}, },
"SharedCringe": { "SharedCringe": {
"type": "Transitive", "type": "Transitive",
"resolved": "0.1.95", "resolved": "0.1.97",
"contentHash": "47goiZDnQDkzTFt/0QN6BWfMoae67AWSF49+G92/XWg7pXCVI57q9Ni21WZQ78Zkf2Se+WO1IvxaNrA3SfOAgw==", "contentHash": "t2gKyOtpU+f9cUyDVeYnY/65PdustUyBzP8XuSr3YnTTOAk3GuHd6TJ9WMThFUk4XNs2+nL2zV5su8wzEJhMPw==",
"dependencies": { "dependencies": {
"CringeBootstrap.Abstractions": "0.1.95", "CringeBootstrap.Abstractions": "0.1.97",
"NLog": "5.4.0", "NLog": "6.0.2",
"SpaceEngineersDedicated.ReferenceAssemblies": "1.206.32" "SpaceEngineersDedicated.ReferenceAssemblies": "1.206.32"
} }
}, },
@@ -211,45 +200,17 @@
"resolved": "20.1.0", "resolved": "20.1.0",
"contentHash": "+GntwnyJ5tCNvUIaQxv2+ehDvZJzGUqlSB5xRBk1hTj1qqBJ6s4vK/OfGD/jae7aTmXiGSm8wpJORosNtQevJQ==" "contentHash": "+GntwnyJ5tCNvUIaQxv2+ehDvZJzGUqlSB5xRBk1hTj1qqBJ6s4vK/OfGD/jae7aTmXiGSm8wpJORosNtQevJQ=="
}, },
"System.Buffers": {
"type": "Transitive",
"resolved": "4.5.1",
"contentHash": "Rw7ijyl1qqRS0YQD/WycNst8hUUMgrMH4FCn1nNm27M4VxchZ1js3fVjQaANHO5f3sN4isvP4a+Met9Y4YomAg=="
},
"System.Linq.Async": { "System.Linq.Async": {
"type": "Transitive", "type": "Transitive",
"resolved": "6.0.1", "resolved": "6.0.3",
"contentHash": "0YhHcaroWpQ9UCot3Pizah7ryAzQhNvobLMSxeDIGmnXfkQn8u5owvpOH0K6EVB+z9L7u6Cc4W17Br/+jyttEQ==", "contentHash": "hSHiq2m1ky7zUQgTp+/2h1K3lABIQ+GltRixoclHPg/Sc1vnfeS6g/Uy5moOVZKrZJdQiFPFZd6OobBp3tZcFg=="
"dependencies": {
"Microsoft.Bcl.AsyncInterfaces": "6.0.0"
}
},
"System.Numerics.Vectors": {
"type": "Transitive",
"resolved": "4.5.0",
"contentHash": "QQTlPTl06J/iiDbJCiepZ4H//BVraReU4O4EoRw1U02H5TLUIT7xn3GnDp9AXPSlJUDyFs4uWjWafNX6WrAojQ=="
},
"System.Runtime.CompilerServices.Unsafe": {
"type": "Transitive",
"resolved": "6.0.0",
"contentHash": "/iUeP3tq1S0XdNNoMz5C9twLSrM/TH+qElHkXWaPvuNOt+99G75NrV0OS2EqHx5wMN7popYjpc8oTjC1y16DLg=="
},
"System.Text.Json": {
"type": "Transitive",
"resolved": "9.0.0",
"contentHash": "js7+qAu/9mQvnhA4EfGMZNEzXtJCDxgkgj8ohuxq/Qxv+R56G+ljefhiJHOxTNiw54q8vmABCWUwkMulNdlZ4A=="
} }
}, },
"net9.0-windows7.0/win-x64": { "net9.0-windows7.0/win-x64": {
"ImGui.NET.DirectX": { "ImGui.NET.DirectX": {
"type": "Transitive", "type": "Transitive",
"resolved": "1.91.0.1", "resolved": "1.92.1.2",
"contentHash": "PpW1gQ9g97h6Hm/h/tkSBOmsBYgGwN8wKNmlJomcQFD/zRY1HPkJZz18XRSfRLHPmH2eeh4hhhZv1KHug7dF9g==", "contentHash": "3n4qx0oWGlYHphHJ5a2/ernzasrsyE6RZ6NOxeACf3w/18qsqCVrXu2Xh9L0f4bwqq3eTTMNpV860yUHu1yiuw=="
"dependencies": {
"System.Buffers": "4.5.1",
"System.Numerics.Vectors": "4.5.0",
"System.Runtime.CompilerServices.Unsafe": "6.0.0"
}
}, },
"Steamworks.NET": { "Steamworks.NET": {
"type": "Transitive", "type": "Transitive",