Can't get the Reqnroll solution to compile properly #38
-
Clean checkout, clean build (i.e. "Build/Rebuild Solution"). I get error messages like
Was a about to raise a "Bug Report" but that template doesn't accommodate for plugin developers. Please let me know if this is not the proper way to report, but I'm stuck here. What am I doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 11 replies
-
This is actually what I experienced on my laptop as well. The solution builds on my work laptop which also has older .net framework tooling installed, which my own laptop does not. |
Beta Was this translation helpful? Give feedback.
-
I was having that problem intermittently as well. Deleted all |
Beta Was this translation helpful? Give feedback.
-
I haven't attempted to recreate this yet, but it sounds like the known issue with Visual Studio locking files during builds. This is automatic in the build.ps1 as it provides that value as a command line parameter to msbuild. That explains why the build works from the command line but not within VS. HTH |
Beta Was this translation helpful? Give feedback.
-
This is unfortunately a known problem that we inherited from SF, that we need to address ASAP. The problem is that the MsBuild task of Reqnroll is used by the "Specs" tests and VS locks the result in various ways. My (not always working) workaround is:
|
Beta Was this translation helpful? Give feedback.
-
Got what seems to be a reliable fix set up in this PR: Trick was to set the |
Beta Was this translation helpful? Give feedback.
Got what seems to be a reliable fix set up in this PR:
#64
Trick was to set the
TaskFactory="TaskHostFactory"
attribute on the tasks to make sure msbuild was killed immediately after the tasks run.