Click here to Skip to main content
16,022,298 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I have a C# project developed using VS2013 and I have updated it to VS2017.

It has build errors and reference errors and i have resolved that and committed those changes .csproj files and I not commmitted the unversioned files.


Later sometime I had deleted the unversioned files and I had switched back to older bracnh (VS2013) and switched back to develop branch. At that time, all those reference errors and build errors is occurring again.

What is the actually happening here?
Why the nuget packages are not taking from based on the .csproj files changes


What I have tried:

<Reference Include="Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
    <HintPath>..\..\packages\Newtonsoft.Json.13.0.3\lib\net40\Newtonsoft.Json.dll</HintPath>
    <Private>True</Private>
  </Reference>
Posted
Comments
Richard Deeming 19-Jun-24 3:23am    
So some code that we can't see is producing some errors that we also can't see, and you want us to tell you why?

Click the green "Improve question" link. Update your question to include the full details of the errors, and any relevant parts of your code. Also explain precisely what you had to do to resolve the errors.
Chinnadurai05 19-Jun-24 5:21am    
Hi Richard,

Problem is not with the code. Shall I commit the dlls ,nupkg references or what is the most efficient way to do so that all my references should be preserved in the particular branch during the commit. Currently I had committed using the .csproj changes which is not working
Dave Kreskowiak 19-Jun-24 9:59am    
No, everything in the packages folder is left out of source control. Also, build targets (the bin folder) are left out of source control.

To restore missing NuGet packages, you right-click your solution line in Solution Explorer and click Restore NuGet Packages.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900