Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Removing Project Reference and Accessing External Project

$
0
0

I'm having issue changing around some project structure:

I had a solution with two projects both stored in the solution folder. I removed on of the projects by selecting the project (remove) and then deleting the project in Explorer.  Lets Call them Project A and Project B.  So I removed Project B.

I then created a new solution with one project Project C. I put the common functions from Project B that I wanted to use amoung several different solutions into this new Project.  I built the project, signed it with a Strong Name and added it to the Main Solution. I then added it as a reference to Project A.

I cleaned the projects and the solution and rebuilt them as well. Everything still looks good. Then I hit debug and get this error:

Error1 The project file "C:\VisualStudio\Main Solution\Project B\Project B.csproj" was not found.Project A.

If I put the project back into explorer (but do not add it back as a reference) and I can debug (The problem is I don't need it anymore and would rather have it GONE GONE).

So now that I am debugging I hit the page that utilizes the new external Project C references and I receive this error:

Could not load file or assembly 'Project C, Version=1.0.0.0, Culture=neutral, PublicKeyToken=79f484d65b67e89d' or one of its dependencies. The system cannot find the file specified.

I believe this is why I had initially built the projects in the same folder. However I have so much code that needs reused between three other projects I wanted to be able to pull in the same project into all three solutions so I stored it in its own location.

Where am I going wrong here?


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>