Reputation: 1795
I copied and pasted a visual studio solution from a folder to another, and now when I open the new one I see in the output window (show output is set to intelliSense):
[Failure] Could not find file 'C:\Path\To\File\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs'.
[Failure] Could not find file 'C:\Path\To\File\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs'.
[Failure] Could not find file 'C:\Path\To\File\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs'.
[Failure] Could not find file 'C:\Path\To\File\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs'.
[Failure] Could not find file 'C:\Path\To\File\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs'.
[Failure] Could not find file 'C:\Path\To\File\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs'.
[Failure] Could not find file 'C:\Path\To\File\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs'.
[Failure] Could not find file 'C:\Path\To\File\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs'.
[Failure] Could not find file 'C:\Path\To\File\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs'.
[Failure] Could not find file 'C:\Path\To\File\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs'.
[Failure] Could not find file 'C:\Path\To\File\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs'.
[Failure] Could not find file 'C:\Path\To\File\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs'.
[Failure] Could not find file 'C:\Path\To\File\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs'.
[Failure] Could not find file 'C:\Path\To\File\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs'.
[Failure] Could not find file 'C:\Path\To\File\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs'.
[Failure] Could not find file 'C:\Path\To\File\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs'.
[Failure] Could not find file 'C:\Path\To\File\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs'.
[Failure] Could not find file 'C:\Path\To\File\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs'.
[Failure] Could not find file 'C:\Path\To\File\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs'.
[Failure] Could not find file 'C:\Path\To\File\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs'.
[Failure] Could not find file 'C:\Path\To\File\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs'.
[Failure] Could not find file 'C:\Path\To\File\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs'.
[Failure] Could not find file 'C:\Path\To\File\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs'.
[Failure] Could not find file 'C:\Path\To\File\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs'.
[Failure] Could not find file 'C:\Path\To\File\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs'.
[Failure] Could not find file 'C:\Path\To\File\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs'.
[Failure] Could not find file 'C:\Path\To\File\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs'.
[Failure] Could not find file 'C:\Path\To\File\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs'.
[Failure] Could not find file 'C:\Path\To\File\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs'.
[Failure] Could not find file 'C:\Path\To\File\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs'.
How can I make this messages go away?
Upvotes: 15
Views: 4101
Reputation: 1
Do full Rebuild under the relevant configuration and when it succeeds, close and re-open VS and those spurious messages should disappear.
I had this yesterday and tried every suggestion under the sun and none of them worked. I had another one this morning and the full Rebuild sorted it.
Edit: I just noticed, the projects where this was happening are not selected for Build in Configuration Manager. I had to do a /bin and /obj folder delete a few days before to cure another issue, so this might have been caused by remnants of those old builds not being refreshed by my regular build process.
Upvotes: 0
Reputation: 24766
IntermediateOutputPath
and OutputPath
destination paths doesn't have spaces at the end.Upvotes: 0
Reputation: 522
open your projectname.csproj file in any text editor such as notepad++. Find code similar as follow:
<Compile Include="obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs" />
<Compile Include="obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs" />
<Compile Include="obj\Debug\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs" />
<Compile Include="obj\Release\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs" />
<Compile Include="obj\Release\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs" />
<Compile Include="obj\Release\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs" />
Remove those lines and restart visual studio or unload your solution and reload the solution.
Upvotes: 6
Reputation: 23764
I think this github issue may be the answer: https://github.com/Microsoft/TypeScript/issues/7110
with the resolution description
"Yup. roslyn is trying to read the files when this happens, and clearly the files are no longer available or are locked. We're printing something into the output window so people know this so they're not confused as to why things like intellisense aren't showing full information about their project."
Upvotes: 1
Reputation: 564
Try deleting the suo file. That seems to help my case sometimes.
Upvotes: 3