在具有 4.0 项目的解决方案中添加 4.5 项目
Add 4.5 project inside a solution with 4.0 projects
我可以在只有 4.0 项目的解决方案中添加 4.5 项目吗?
示例:
-ProductSolution
-Product.Domain.csproj (4.0)
-Product.Web.csproj (4.0)
-Product.WebApi.csproj (4.5)
我现在无法迁移我的项目。我想添加一个 Web Api 并将其引用到我的 Product.Domain 项目。
感谢您的帮助。
你不能。 4.0项目无法引用4.5项目,所以最终目标无法实现。
您可以在 Visual Studio、
下的单个解决方案中拥有多个 .Net 版本的项目
但是,您不能在旧版本的项目中引用 .Net framework 4.5 版本的项目。
.Net frameworks are not forward compatible.
所以你的项目Product.WebApi.csproj (4.5)
是基于4.5的,你不能在Product.Domain.csproj (4.0)
中添加对它的引用
我可以在只有 4.0 项目的解决方案中添加 4.5 项目吗?
示例:
-ProductSolution
-Product.Domain.csproj (4.0)
-Product.Web.csproj (4.0)
-Product.WebApi.csproj (4.5)
我现在无法迁移我的项目。我想添加一个 Web Api 并将其引用到我的 Product.Domain 项目。
感谢您的帮助。
你不能。 4.0项目无法引用4.5项目,所以最终目标无法实现。
您可以在 Visual Studio、
下的单个解决方案中拥有多个 .Net 版本的项目但是,您不能在旧版本的项目中引用 .Net framework 4.5 版本的项目。
.Net frameworks are not forward compatible.
所以你的项目Product.WebApi.csproj (4.5)
是基于4.5的,你不能在Product.Domain.csproj (4.0)