我正在开发一个自定义的MSBuild任务,它可以构建一个ORM层,并在项目中使用它.我受到Visual Studio保留MSBuild任务DLL而不放手的行为的阻碍.
我想像这样组织我的解决方案;
My Solution
|
+- (1) ORM Layer Custom Task Project
| |
| +- BuildOrmLayerTask.cs // here's my task
|
+- (2) Business Logic Project // and here's the project that uses it.
|
+- <UsingTask TaskName="BuildOrmLayerTask" AssemblyFile="$(TaskAssembly)" />
Run Code Online (Sandbox Code Playgroud)
但是,当项目(2)构建时,它会从项目(1)锁定到程序集.所以现在我无法在不关闭解决方案并重新打开它的情况下再次构建项目(1).
有没有什么方法可以组织事情,以便自定义构建任务不被Visual Studio锁定?