Skip to content

Move TestClasses into a separate project #866

@lock9

Description

@lock9

I've noticed that the TestClasses are excluded from compilation. This is likely because they are smart contracts and should not be built on the default dotnet build.

Problem:
By excluding them, the IDEs are not showing auto-complete and other important features. The C# support is not enabled when these files are excluded from compilation:
Screenshot 2024-01-17 at 01 44 16

If the compilation of those files is enabled, dotnet cannot build the project:

Screenshot 2024-01-17 at 01 46 52

Proposed solution:
Move all the test classes into a separate .csproj. In this new project, we could leave compilation enabled and include a post-build step to compile the smart contracts (if needed).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions