Use Microsoft.Windows.WinmdGenerator from VS sln? #1888
Unanswered
TheRealColeB
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all -
I would like use Microsoft.Windows.WinmdGenerator to generate metadata for headers within an existing sln that is built from VS. I've created a .csproj which uses the Microsoft.Windows.WinmdGenerator, and it builds using "dotnet build" outside of my normal sln, but when I try to integrate it into my regular build, I get this error
2>C:\Users\coleb\.nuget\packages\microsoft.windows.winmdgenerator\0.59.13-preview\Sdk\Sdk.targets(101,5): error MSB4062: The "MetadataTasks.PrepSettingsForFunctionPointerFixups" task could not be loaded from the assembly C:\Users\coleb\.nuget\packages\microsoft.windows.winmdgenerator\0.59.13-preview\tools\net8.0\MetadataTasks.dll. Could not load file or assembly 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.
I've been trying to figure out a solution to this problem, but I dont really understand the difference between "dotnet build" and building in VS, and why VS is unable to load the required runtime.
Does anyone have experience with integrating this tool into a VS build sln?
Thanks,
Cole
Beta Was this translation helpful? Give feedback.
All reactions