我正在开发一个构建ORM 层的自定义 MSBuild 任务,并在项目中使用它。我受到 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)" />
但是,当项目 (2) 构建时,它会锁定项目 (1) 的程序集。所以现在我不能在不关闭解决方案并重新打开它的情况下再次构建项目 (1)。
有什么方法可以组织事情,以便自定义构建任务不会被 Visual Studio 锁定?