简体   繁体   中英

Building solution using Git-based Visual Studio Online fails with project references

I've got a Git-based Visual Studio Online instance configured and setup.

I've structured the Team Project to have one repository for every solution to divide things up. One repository for "CommonLibrary" and one for "WebApplication1".

I'm using Project References in Visual Studio to reference from WebApplication1 to CommonLibrary.

CommonLibrary has it's own solution but the project is added as an existing project to WebApplication1 and referenced in that way.

When building this locally, everything is fine.

However, when trying to build on Visual Studio Online, the build fails with the error message that the referenced project CommonLibrary couldn't be found.

I can't find any properties in the Build Definition for specifying the source to build from different repos.

在此处输入图片说明

Couldn't find any resources about "How to build a solution that references from projects in another repository with Git-based Visual Studio Online".

您需要使用子模块 ,然后在构建过程中初始化子模块。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM