avivanoff

Results 33 comments of avivanoff
trafficstars

@Evangelink, making TestBase internal would force all derived classes to be internal as well.

Some additional observations: - Test project targets .NET Framework 4.8. - Running EXE directly results in the same error. - Running the tests using vstest.console.exe has no issues. - Converting...

Finally, I was able to create a [sample project](https://github.com/user-attachments/files/18255128/MSTestFakes.zip).

@drognanar, @Evangelink, looks like the SDK-style projects have problems with .NET 4.8 targeting. If you change the target framework in the sample project to net8.0 it works.

@drognanar, @Evangelink, removing `AnyCPU` results in another issue: you cannot build for multiple platforms anymore. The reason is that fake assemblies are generated in FakesAssemblies folder. So if I build...

``` Microsoft (R) COFF/PE Dumper Version 14.34.31937.0 Copyright (C) Microsoft Corporation. All rights reserved. Dump of file .\Project1.exe File Type: EXECUTABLE IMAGE Section contains the following load config: 000000C0 size...

> (Also, it looks like you might have forgotten to attach the project.) [Project1.zip](https://github.com/trailofbits/winchecksec/files/10355780/Project1.zip)

> The issue here is that the headers (for some unknown reason) lie about the size of the load config directory. The reason is known and [documented](https://learn.microsoft.com/en-us/windows/win32/debug/pe-format#load-configuration-directory).

@vcsjones, after spending more time on the issue I realized that it is not `/dg /ds /di` that we need, but `/p7`.

Looks like it is now a duplicate of #77.