[英]Include a DLL file in project to avoid circular reference for deploying asp.net application
I have the following solution structure 我有以下解决方案结构
Test_Solution
|_ Test1.csproj
|_ Reference
|_ SomeDll.dll
|_ Others.dll
|_ Files
|_ Test2.csproj
|_ Reference
|_ Test1.dll
|_ Etc.dll
|_ Files
Test1
project is a web application (asp.net with mvc 3). Test1
项目是一个Web应用程序(带有mvc 3的ASP.NET)。
Test2
is a unit test project. Test2
是一个单元测试项目。
How you see, Test2
has already a reference to Test1.dll (has some functions which are found in Test1 project) 看起来,
Test2
已经引用了Test1.dll(具有一些在Test1项目中找到的功能)
For deploying application, I will create package using msbuild
command (it will create cmd
file and a ZIP and some XML files). 对于部署应用程序,我将使用
msbuild
命令创建软件包(它将创建cmd
文件,ZIP和一些XML文件)。
I want to include in that package also the Test2.dll
but I cannot because of circular reference warning. 我也想在该软件包中包含
Test2.dll
但由于循环引用警告而无法执行。
Why including that Test2.dll
? 为什么要包含该
Test2.dll
? Because I want to deploy whole package on a server and run a test (automated testing) using Test2.dll
and install the application simultaneously. 因为我想在服务器上部署整个程序包并使用
Test2.dll
运行测试(自动测试), Test2.dll
同时安装应用程序。
What's the best way to do that ? 最好的方法是什么?
进行自定义构建,该构建始终构建两个项目并将两个结果打包到zip中
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.