danielpalme / IocPerformance

Performance comparison of .NET IoC containers
https://danielpalme.github.io/IocPerformance
Apache License 2.0
876 stars 157 forks source link

Cannot build with 4.7 #106

Closed JamieMeyer closed 5 years ago

JamieMeyer commented 5 years ago

Severity Code Description Project File Line Suppression State Error CS0116 A namespace cannot directly contain members such as fields or methods IocPerformance D:\Code\IocPerformance-master\IocPerformance\Adapters\DryIocZero\Container.Generated.cs 1 Active

Building with 4.7.2.

Deleting the contents of this file allowed it to build and execute successfully. Downloaded projects should just "work" out of the box, without the need to understand build errors.

danielpalme commented 5 years ago

Just tried it myself. I downloaded the code and was able to compile without issues.

DryIocZero used Fody. Fody sometimes causes build problems. Closing and restarting Visual Studio fixes the problem.