Skip to content

First build fails for project utilizing Crestron.SimplSharp.SDK.SandboxLibrary #5

@scottpidzarko

Description

@scottpidzarko

The Nuget package makes edits to the csproj to comment out these unneeded portions of the csproj since we actually want to target the compact framework targets files:

<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
...
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

To gets this edit to take effect through MSBuild, it needs to be done as part of a pre-build step, however by that time MSBuild will have loaded the .csproj to memory, which is why the second compile with the freshly edited .csproj works fine.

Currently this task is running with BeforeTargets="BeforeBuild;BeforeClean", but if there is a different target that occurs when the package is restored that would be even better.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions