[英]Add existing project from GitHub to my local Visual Studio Solution
I have a local Solution developed in Visual Studio. 我在Visual Studio中开发了一个本地解决方案。 It is also published in GitHub ( https://github.com/symasdesign/DiagramTest ).
它也发布在GitHub( https://github.com/symasdesign/DiagramTest )中。 Now I want to add another project from GitHub ( https://github.com/symasdesign/stateless ).
现在,我想从GitHub( https://github.com/symasdesign/stateless )添加另一个项目。
For this, I have added the project stateless as a submodule to DiagramTest with 为此,我将无状态项目作为子模块添加到了DiagramTest中,
...\DiagramTest>git submodule add https://github.com/symasdesign/stateless.git
The Solution stateless.sln
is now added in a subdirectory to ...\\DiagramTest
: 解决方案
stateless.sln
现在添加到...\\DiagramTest
的子目录中:
...\DiagramTest\stateless\Stateless.sln
It contains the project Stateless.csproj
at 它包含位于的项目
Stateless.csproj
...\DiagramTest\stateless\src\Stateless\Stateless.csproj
When I add this project to my Solution DiagramTest
, I get the following error in Visual Studio: 当我将此项目添加到我的解决方案
DiagramTest
,在Visual Studio中出现以下错误:
Assets file '...\DiagramTest\stateless\src\Stateless\obj\project.assets.json' not found. Run a NuGet package restore to generate this file.
When I run "Restore NuGet Packages" I get the error 当我运行“还原NuGet软件包”时,出现错误
Error occurred while restoring NuGet packages: The operation failed as details for project Stateless could not be loaded.
What do I wrong for adding the foreign project to my solution and get it working? 将外部项目添加到我的解决方案并使之正常工作,我有什么错?
我得到它与运行
dotnet restore
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.