dotnet / interactive

.NET Interactive combines the power of .NET with many other languages to create notebooks, REPLs, and embedded coding experiences. Share code, explore data, write, and learn across your apps in ways you couldn't before.
MIT License
2.88k stars 382 forks source link

Installing Microsoft.Windows.SDK.NET.Ref fails #3451

Open michaelmesser opened 7 months ago

michaelmesser commented 7 months ago

The package and version I'm asking about: Version: 1.0.510102+2c9feb8daff54c194b638d355d18b5428480a786

Library version: 1.0.0-beta.24101.2+2c9feb8daff54c194b638d355d18b5428480a786

Build date: 2024-02-04T20:27:49.8530377Z

Question

#r "nuget: Microsoft.Windows.SDK.NET.Ref, 10.0.22621.33"

Error:

error NU1213: The package Microsoft.Windows.SDK.NET.Ref 10.0.22621.33 has a package type DotnetPlatform that is incompatible with this project. 

How can I resolve this? I'm not sure if this is a bug, feature request, or a question.

QQstone commented 7 months ago

I face the same issue, do you have any new found?

jonsequitur commented 6 months ago

This is not currently supported.

ptorr-msft commented 3 weeks ago

FYI I hit this too. Not sure if it applies to your situation, but I had to first install Windows App SDK and then manually edit my project file. Here is my final project file:

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net8.0-windows10.0.22621.0</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
    <SupportedOSPlatformVersion>10.0.22621.0</SupportedOSPlatformVersion>
    <WindowsSdkPackageVersion>10.0.22621.38</WindowsSdkPackageVersion>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.WindowsAppSDK" Version="1.6.240829007" />
  </ItemGroup>
</Project>

YMMV. Hope this helps.