Project Locations in Visual Studio 2015 -
i have asp.net core app using class library projects e.g. domain, repositories, etc.
these class libraries used in cloud app runs worker role why want keep them separate , development should follow own course , not depend on asp.net core app.
with said, asp.net core project should aware of changes made class library projects why want link them solution asp.net project.
what's best way structure these project folders? folder structure follows:
my projects folder
--- myaspnetcoreproject (has own solution)
--- mybackendproject (has own solution contains following projects)
----- domainproject
----- repositoriesproject
when try "add existing project" link backend projects asp.net core project, following message:
the project attempting add source control may cause other source control users have difficulty opening solution or getting newer versions of it. avoid problem, add project location below binding root of other source controlled projects in solution.
you'll need move referenced project under same solution. if want separate solutions can't link project -- before .net core link assembly(s) instead.
one problem of trying link projects under other solutions other users may not have copy of necessary solutions , may installed in different locations other users. solution needs keep track of assemblies built.
if build library nuget package linking reference easy.
your options become
- move projects under same solution
- keep separate solutions , publish library (private) nuget package
Comments
Post a Comment