Test throws TypeInitializationException

Darren Rockett 0 Reputation points
2024-06-14T08:05:45.1233333+00:00

I have posted the following on Stack Overflow, any help would be appreciated

https://stackoverflow.com/questions/78619545/xunit-test-throws-typeinitializationexception

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,183 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Darren Rockett 0 Reputation points
    2024-06-14T09:01:40.94+00:00

    The issue was resolved by clearing down DeploymentManagerAutoInitializer.cs, I am not sure where the file has appeared from (says it is Auto Generated) and can't find a great deal of info on it, it also cannot be removed from the project (along with WindowsAppSdk-VersionInfo.cs).