Error while executing project in Visual Studio 2015

4

When compile gives sucessfull , but when I try to run my project I get this error below.

Can anyone help or give me a hint?

I use visual studio 2015.

  

Severity Code Description Project File Line Error Could not write lines to file "obj \ x86 \ Debug \ ProjectName.View.csproj.FileListAbsolute.txt". The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. ProjectName.View

    
asked by anonymous 24.11.2015 / 17:53

2 answers

3

The path of the FileListAbsolute.txt file has more than 260 characters.

c:\pasta\pasta\pasta\obj\x86\Debug\NomeDoProjecto.View.csproj.FileListAbsolute.txt

Try to make use of this file elsewhere, I narrow it down.

It has 260 characters, has to be at most 248. It takes 12 characters from the path that works

    
24.11.2015 / 18:02
1

The error is because the file path is too long .

Move the project to a less rooted folder in the structure of your directories. For example, C:/Projetos/SeuProjeto . This way you greatly reduce the likelihood of giving this long path error to the project files directory.

    
25.11.2015 / 11:37