mikefourie-zz / MSBuildExtensionPack

MIT License
366 stars 104 forks source link

The "Assembly" task failed unexpectedly #90

Closed hazama-yuinyan closed 5 years ago

hazama-yuinyan commented 5 years ago

Hi! I'm trying to follow this blog post to automate the packaging process but it fails when I try to run the build, saying "error MSB4018: System.NullReferenceException: Object reference not set to an instance of an object" and "error MSB4028: The "Assembly" task's outputs could not be retrieved from the "OutputItems" parameter. Object reference not set to an instance of an object". I tried everything I came up with, relative path, absolute path and full task name but neither of them do. I read the source code of MSBuild.Extension.Pack and guessed that it somehow failed to read the assembly so I made sure that it can be loaded with Assembly.LoadFrom from a console application. I tried on both 1.5.0 and 1.9.1 and got exactly the same errors on either version. I have no idea of why that happens. What solution do you come up with?

hazama-yuinyan commented 5 years ago

I don't need it now so I'll close it. Thank you.