Skip to content

Scripty doesn't work in SDK-style projects #120

Description

@thomaslevesque

When the project is in the new .NET Core csproj format ("SDK-style" project), the custom tool doesn't work. There's no error, but nothing is generated.

The Scripty.MSBuild package doesn't work either; the build fails with this error:

Microsoft.Build.Exceptions.InvalidProjectFileException: The imported project "C:\Users\ThomasLEVESQUE\.nuget\packages\scripty.msbuild\0.7.4\tools\Sdks\Microsoft.NET.Sdk\Sdk\Sdk.props" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk.

Sample project that demonstrates both issues:

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <TargetFramework>net462</TargetFramework>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Scripty.MsBuild" Version="0.7.4" />
  </ItemGroup>

  <ItemGroup>
    <None Update="Foo.csx">
      <Generator>ScriptyGenerator</Generator>
    </None>
  </ItemGroup>

</Project>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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