ArxOne / MrAdvice

.NET aspect weaver (build task under NuGet package)
MIT License
311 stars 45 forks source link

Error when executing 'Clean Solution' and 'Build Solution' #154

Closed wilhelmmedetz closed 3 years ago

wilhelmmedetz commented 5 years ago

When performing a Clean Solution and afterwards a Build Solution the following error occurs in the Errors window. The Build Output window states Build succeded with no errors. The error does not disappear after further successful builds.

Error       Unhandled exception: System.IO.FileNotFoundException: Could not find file 'obj\Debug\net40\SimControl.Templates.CSharp.ConsoleApp.exe'.
File name: 'obj\Debug\net40\SimControl.Templates.CSharp.ConsoleApp.exe'
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
at System.IO.File.Copy(String sourceFileName, String destFileName, Boolean overwrite)
at StitcherBoy.Reflection.ModuleManager.LoadWithTemp(String assemblyPath, Nullable`1 useTemp)
at StitcherBoy.Weaving.Build.AssemblyStitcher.LoadModule(String assemblyPath)
at StitcherBoy.Weaving.Build.AssemblyStitcher.Process(StringDictionary parameters, Guid buildID, DateTime buildTime, String entryAssemblyPath)
at StitcherBoy.Weaving.StitcherProcessor.Process(StringDictionary parameters, Guid buildID, DateTime buildTime, String entryAsemblyPath)
at StitcherBoy.Weaving.StitcherProcessor.Process(StringDictionary parameters, Guid buildID, DateTime buildTime, String entryAsemblyPath)
at StitcherTask`1.Run(Boolean fromExe)  10  C:\Users\WilhelmMedetz\.nuget\packages\mradvice\2.8.8\build\MrAdvice.targets    SimControl.Templates.CSharp.ConsoleApp      MrAdviceTask
picrap commented 5 years ago

I think this is the same problem as the other issue, so I sugguest you merge them. Since I still have no idea about the problem, I am going to feel a lighter burden with a fewer issues...

wilhelmmedetz commented 5 years ago
wilhelmmedetz commented 4 years ago

This problem only seems to occur when using multitarget projects

wilhelmmedetz commented 3 years ago

Thanks 2.8.12 seems to fix this this issue

picrap commented 3 years ago

This is a surprise (a good one), but OK