Skip to content

Automatically generate [RequireExtension] for referenced projects #150

Open

Description

Having to manually add it is rough--especially if you want to use the current Configuraiton (Debug or Release).

using Xunit.Harness;

#if DEBUG
[assembly: RequireExtension(@"..\..\..\..\..\VS.Data.Sqlite\bin\Debug\VisualStudio.Data.Sqlite.vsix")]
#else
[assembly: RequireExtension(@"..\..\..\..\..\VS.Data.Sqlite\bin\Release\VisualStudio.Data.Sqlite.vsix")]
#endif

...doing it in MSBuild is a bit better but still not great.

<ItemGroup>
  <AssemblyAttribute Include="Xunit.Harness.RequireExtension">
    <_Parameter1>..\..\..\..\..\VS.Data.Sqlite\bin\$(Configuration)\VisualStudio.Data.Sqlite.vsix</_Parameter1>
  </AssemblyAttribute>
</ItemGroup>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    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