Skip to content

Add DotNetBuildConfiguration option for .NET testing #154

@rshade

Description

@rshade

Hello!

  • Vote on this issue by adding a 👍 reaction
  • If you want to implement this feature, comment to let us know (we'll work with you on design, scheduling, etc.)

Issue details

Add DotNetBuildConfiguration option to allow tests to specify Debug vs Release build configuration for .NET projects.

Use Cases

  • Testing performance-sensitive code where Release optimizations matter
  • Testing conditional compilation symbols that differ between Debug/Release
  • Validating that Release builds work correctly with local SDK references

Proposed API

test := NewPulumiTest(t,
    "path/to/csharp/project",
    opttest.DotNetBuildConfiguration("Release"),
)

Implementation Notes

  • Could set MSBuild Configuration property via environment variable
  • Alternative workaround: Users can use opttest.Env("Configuration", "Release")

Priority

Low - current workaround exists via opttest.Env(), no clear testing use case identified yet

Affected area/feature

.NET/C# Testing

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions