Skip to content

Automatically generate [RequireExtension] for referenced projects #150

@bricelam

Description

@bricelam

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions