Replacing csproj gives problems?

1

For the second time my .csproj.user was detonated. I do not know why this has happened or what can influence this file. Well, this is a new project I did, using .Net Standard . When I open .csproj.user I have this:

NULLNULLNULLNULLNULLNULL... . I have another project that was left, but the Android project is just like mine and .csproj.user is like this.

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <SelectedDevice>Samsung SM-J500M</SelectedDevice>
    <DefaultDevice>VisualStudio_android-23_x86_phone</DefaultDevice>
  </PropertyGroup>
</Project>

Now before, there was no file .csproj . After downloading from TFS it actually came in both: .csproj and .csproj.user . I honestly do not know why the latter .csproj.user do not know what he does and what he does. Even by downloading .csproj my project does not run, it is not loaded and even giving reload it continues out of the project. What can I do in that regard? It is a Android project with Xamarin.Forms and project .Net Standard .

    
asked by anonymous 05.02.2018 / 13:36

1 answer

0

The csproj file is an xml that stores the structure of folders, files, references, and other properties related to the project itself.

The csproj.user file as far as I know is generated by visual studio and stores some information about the development environment in visual studio itself, for example: what files in that project are open in what kind of editor and things like that. That is, it is expendable.

In visual studio, we have a solution-based framework that contains one or more projects. The sln file is also an xml with goals similar to csproj , but in this case for the solution. For example, which projects in that directory are part of the solution, which are marked for build and deploy, their configuration configuration profiles, and more.

For your problem, I suggest deleting the .vs folder (It should be hidden folder in the solution directory), the .user files, and deleting the bin and obj directories of all projects. So, include the projects that are missing out on the solution again, do a clean and rebuild all. there should be some caching with garbage.

Hope it helps

    
07.02.2018 / 13:08