문제

I have a project containing two solutions, I want to access some of the models in solution a when I was working on solution B. How can I access solution A's Models? Can anyone Help please

도움이 되었습니까?

해결책

You can always add the SolutionA.ProjectWithModels.csproj as an existing project into SolutionB.

Just keep in mind that the Visual Studio will most likely warn you about the project not being part of SolutionB folder structure, but if you can guarantee that SolutionA.ProjectWithModels.csproj will always be available when opening SolutionB then that might be an option.

Another option could be to copy the generated SolutionA.ProjectWithModels assembly and reference it in SolutionB.Mvc4Project or maybe create a separate solution/project for those models and create a NuGet package from it which you can then install in SolutionB.Mvc4Project

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top