I keep recieving the error messages below on two different machines when compiling a solution:
Rebuild All started ... Build Failure. Error: 'path' cannot be an empty string ("") or start with the null character. Parameter name: path ========== Rebuild All: 0 succeeded, 0 failed, 0 skipped ==========
I rebooted the machine and no success concluded. Please look into this issue ASAP.
Added a solution by Stefie Haslim · Feb 03 at 04:21 AM
Right click on the solution, disable "Lightweight Solution Load" then reload the solution. It surely will impact the loading time, but it worked for me.,
Try to right click on the solution, and then disable the "Lightweight Solution Load", re-load your solution. It works for me.
Added a solution by Janne · Feb 01 at 09:14 AM
I have the exact same problem for the last two days, since I performed the update of January 28th. My colleague has no problems with exactly the same code.
I found a workaround that works for me: I just delete the local repository completely, and then get the clean code from the remote repository. For me the code compiles after that. Cleaning or manually removing obj/bin folders does not yield the same result.
After a restart today I had exactly the same problem again. I fixed it with the same workaround, but this is not a real solution of course.
Our solution contains MVC webAPI projects with .NETCoreApp 1.1 target framework, some test projects (MSTest) with the same target, and some libraries with .NETStandard 1.5 target framework (Dependent upon NETStandard.Library (1.6.1)). The solution also uses Docker.
Added a solution by Jim Culverwell · Feb 03 at 03:25 AM
Got my project working again. I created a brand new project (asp.net core on full framework) and then merged in my files from my old project. It still had the same error. I then manually removed the setting below from the csproj which was copying my appsettings.json file to the outdirectory and after this is built fine.
<ItemGroup> <Content Update="appsettings.json"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </Content> </ItemGroup>
Rather interestingly after the project built when I added this setting back in it then continued to build successfully. My advice if you are getting this error would be to create a brand new project and merge in the files from your old project. There are differences in the new project structure such as
<ItemGroup> <DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="1.0.0-msbuild3-final" /> </ItemGroup>
Function definition for 'name' not found
ctrl-click no longer goes to definition
xproj to csproj migration fails
afxwin.h not found by VS2017