Website projects, project links and version control

I have an ASP.NET website project that used it in the App_Code folder. I pulled part of the code into the class library project (to allow unit testing) and added a link to the project. It compiles and works fine.

The problem is that the only way the website project provides a link to the project (as far as I know) is to have the compiled dll in the / bin directory. I do not want to include these generated files in version control (Subversion). Adding files to the SVN ignore list - as I usually do with / bin dll - is not an option because I am losing the link to the project.

So the question is : is there a way to maintain a project link in a website project other than placing the dll in the / bin directory?

If not, I plan to move the class library to my own solution and use the .refresh file. Since projects will always go together, this is not my preference.

+3
source share
2 answers

Visual Studio, -, . , , , , . , -, .

dll -. , DLL "libs" , .

- - -- - - - libs ( , ) - - -

0

, .

- Solution :

Project("{GUID}") = "WebsiteName", "WebsiteName", "GUID"
    ProjectSection(WebsiteProperties) = preProject
        .... removed for brevity ...
        ProjectReferences = "{GUID OF REFERENCED PROJECTS}|ProjectName.dll"
        .... removed for brevity ...
    EndProjectSection
EndProject

,

0

Source: https://habr.com/ru/post/1744971/


All Articles