Replies: 1 comment
-
The first step is to force a rebuild of the Reqnroll.Tools.MsBuild.Generation project. Then rebuild Reqnroll. Following the above depends on how you are consuming your local build. If consuming the local nuget package, then I suggest that once you build Reqnroll, go to your local nuget package cache and delete the prior build nuget packages for Reqnroll. The location for this is (on Windows) 'C:\Users\\.nuget\packages' Delete the subfolders for reqnroll, reqnroll.mstest, and reqnroll.tools.msbuild.generation Then open your test solution, Clean; Restore Nuget Packages, Rebuild That should result in your test package pulling in your most recent local build of Reqnroll. |
Beta Was this translation helpful? Give feedback.
-
I downloaded the Reqnroll-main repo and did a local Build. I see it generates nuget packages in
...\Reqnroll-main\GeneratedNuGetPackages\Release
In a separate solution\project (.NET 8) that was working with the ReqnRoll.MsTest package from nuget.org, I removed it and then referenced Reqnroll.MsTest.2.1.2-local.nupkg in above folder. When I try to Build the project, I get error
Error MSB4062 The "Reqnroll.Tools.MsBuild.Generation.ReplaceTokenInFileTask" task could not be loaded from the assembly C:....nuget\packages\reqnroll.tools.msbuild.generation\2.1.2-local\build..\tasks\net462\Reqnroll.Tools.MsBuild.Generation.dll.
Could not load file or assembly 'file:///C:....nuget\packages\reqnroll.tools.msbuild.generation\2.1.2-local\tasks\net462\Reqnroll.Tools.MsBuild.Generation.dll' or one of its dependencies.
The system cannot find the file specified. Confirm that the 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 can see that it's trying to reference subfolder net462, but I'm not sure why or what I should do.
Beta Was this translation helpful? Give feedback.
All reactions