Edit

Share via


MSB3097 diagnostic code

This article describes the MSB3097 error code.

Message text

MSB3097: File 'filename' is not a valid assembly.

Description

This error occurs when MSBuild tries to register an assembly for COM, but it failed.

Resolution

Check the assembly mentioned in the error text to see if it built correctly and it's registerable for COM. Try registering it from the command-line using the command-line tools, regasm.exe to see if it gives an error message that gives information about the problem.

Applies to

All versions of MSBuild