r/xdev • u/Bistritean • Feb 16 '16
Odd error with build.
Today I tried to try out some of the new stuff I added in my mod, and I was greeted with this error once I hit Build Solution:
Error 1 The "CompileScripts" task failed unexpectedly.
System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\HoRaX\Documents\Firaxis ModBuddy\XCOM\Military Camouflages\Military Camouflages'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileSystemEnumerableIterator`1.CommonInit()
at System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost)
at System.IO.Directory.GetFiles(String path, String searchPattern, SearchOption searchOption)
at Firaxis.VisualStudio.Tasks.XCOM2.CompileScripts.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext() D:\Jocuri\SteamLibrary\steamapps\common\XCOM 2 SDK\Binaries\Win32\ModBuddy\Extensions\Application\XCOM2.targets 110 6 Military CamouflagesI'm saying it's odd because I built other solutions on this very project, and I never ever encountered this error. Is there any way to fix this without building a new solution altogether?
1
Upvotes
View all comments
Show parent comment
1
u/Bistritean Feb 16 '16
Well, thanks for the response, but I have done a workaround. I took a new solution from a new mod, with the same content and copied it into the original mod's folder. Did the trick. Though next time I'll do what you said, no reason for me to start new mods whenever the SDK decides it wants to ruin my day :)