3

I'm new to HeatWave / WiX and wanted to get started with it, but am running into a strange issue that I haven't been able to find a resolution to.

In short, when I select Add > New Project from the solution context menu, then choose the MSI Package project and click Create, the project creation wizard fails with the error message The SDK 'WixToolset.Sdk/6.0.0' specified could not be found. I haven't been able to find anywhere online that I can download this SDK except from NuGet, but I can't install a NuGet package to the solution itself, so there doesn't seem to be any way to make it available to this project creation wizard.

What am I missing here? The HeatWave documentation implies all I need to do is install the extension and create a project, and then add extra NuGet packages to the project after it has been created. No other steps for installation are mentioned.

For what it's worth, I downloaded the VS extension from here and made sure I updated to the latest version of VS 2022 (17.13.6). If there's any other details relevant to debugging this, let me know.

To be clear, I haven't had any issues installing the extension itself (as far as I know anyway), it's just that I can't create a new project using the extension.

Thanks!

Error in Visual Studio

EDIT: It seems Nuget sources could be a cause of this issue, but in my case I already have nuget.org enabled:

Nuget sources Visual studio UI for sources

2
  • Double-check Visual Studio's view of your NuGet feeds. There are many different ways to override which feeds are enabled/disabled/available, and maybe the VS set is different from what you got on the command-line? Commented May 10 at 20:56
  • It's the same from the VS UI sadly. I added a screenshot in case that helps. Commented May 13 at 19:27

1 Answer 1

0

You have installed HeatWave correctly. The issue sounds like Visual Studio cannot restore from nuget.org. Almost always the issue is misconfigured NuGet sources.

In Visual Studio, go to Tools -> Options then search for nuget. In the "Package Sources" make sure the first entry is to nuget.org like the following:

Visual Studio Package Sources options

You will likely have additional sources in the list

If you prefer the command-line, try the following command:

dotnet nuget list source

You should see https://api.nuget.org/v3/index.json in the list somewhere and it needs to be marked [Enabled]. Mine is first:

Registered Sources:
  1.  nuget.org [Enabled]
      https://api.nuget.org/v3/index.json
  ...

If not, then you need to add that source doing:

dotnet nuget add source --name nuget.org https://api.nuget.org/v3/index.json

If the source is present but disabled, then you need to enable it:

dotnet nuget enable source nuget.org

(Replace nuget.org in that command-line with the name displayed in your first list source command, usually nuget.org).

Sign up to request clarification or add additional context in comments.

4 Comments

Thanks for the suggestion! Unfortunately, I already have nuget.org in my sources and enabled. I updated the question to include this additional debug information. Is there anything else that could be causing this issue?
Maybe try creating a project by hand following the Quick Start (docs.firegiant.com/quick-start) and seeing if that works.
I created the project using the quick start guide, but when I try to add it to VS using add > existing project, I get the same "Wixtoolset.Sdk/6.0.0 could not be found" error. Is it possible for me to install the toolset separately, or is that what the extension is required for?
You can definitely use the WiX Toolset from the command-line, without HeatWave. That's what the Quick Start documentation is doing. However, HeatWave does all the work to integrate the .wixproj into Visual Studio (and it's a lot of work). I've never heard of anyone having this problem after verifying the nuget.config is correct. You might try the HeatWave forum where it is easier to go back and forth: docs.firegiant.com/heatwave/reporting-bugs

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.