Valdiralita
Custom msbuild task
hey i wrote a custom msbuild task and created a nuget for it. in the project Im using the task it seems to work, but in the CI it doesnt. i can reproduce the same error when cleaning my nuget folder locally.
[MSB4036] The "..." task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.) The task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with <UsingTask> in the project file, or in the *.tasks files located in the "/usr/share/dotnet/sdk/8.0.403" directory.
37 replies
creating a nuget for a custom msbuild task
I'm trying to follow the custom msbuild task tutorial here: https://learn.microsoft.com/en-us/visualstudio/msbuild/tutorial-custom-task-code-generation?view=vs-2022
My problem is that when using
dotnet pack
the resulting nupkg
file doesnt contain any binaries.
All required binaries are present in the ./bin/Release/netstandard2.0/
folder, they are just not packed into the nupkg
.
When inspecting the nupkg
, there is no lib
folder inside, i can see my .props file in the build
folder though.
Any ideas why that may happen?13 replies
Render WPF to surface
is there a way to specify a render surface for WPF instead of the window? ive had a bad experience with integrating rendering into the wpf window, but maybe i can integrate wpf into my rendering?
the main reason is that the wpf ui is very slow and makes the 3d window unresponsive, but i cant improve the performance. i could sidestep the problem if rendering wpf to a texture and presenting the texture in my renderer.
1 replies