Skip to content

Conversation

@jonathanpeppers
Copy link
Member

Java.Interop had a custom MSBuild target that builds
jnienv-gen.csproj:

<Target Name="BuildJnienvGen"
    Inputs="..\..\build-tools\jnienv-gen\jnienv-gen.csproj"
    Outputs="$(JNIEnvGenPath)\jnienv-gen.exe">
    <MSBuild
        Projects="..\..\build-tools\jnienv-gen\jnienv-gen.csproj"
    />
</Target>

The problem with this, is if any .cs files change in
jnienv-gen.csproj, then this target will not run.

Instead we should be able to use <ProjectReference/> with
%(ReferenceOutputAssembly)=False, and everything should "just work".

Java.Interop had a custom MSBuild target that builds
`jnienv-gen.csproj`:

    <Target Name="BuildJnienvGen"
        Inputs="..\..\build-tools\jnienv-gen\jnienv-gen.csproj"
        Outputs="$(JNIEnvGenPath)\jnienv-gen.exe">
        <MSBuild
            Projects="..\..\build-tools\jnienv-gen\jnienv-gen.csproj"
        />
    </Target>

The problem with this, is if any `.cs` files change in
`jnienv-gen.csproj`, then this target will not run.

Instead we should be able to use `<ProjectReference/>` with
`%(ReferenceOutputAssembly)=False`, and everything should "just work".
Added `Gendarme` `$(Configuration)`
@jonpryor jonpryor merged commit f7d97c2 into dotnet:master Aug 18, 2019
@jonathanpeppers jonathanpeppers deleted the build-jnienv-gen branch August 18, 2019 22:56
@github-actions github-actions bot locked and limited conversation to collaborators Apr 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants