GithubHelp home page GithubHelp logo

Comments (11)

robmen avatar robmen commented on July 20, 2024

Almost certainly, you are doing the same as in this discussion.

Look in a binlog from MSBuild (msbuild -bl) and search for references to heat.exe in it. It'll probably tell you the harvest folder does not exist.

from issues.

BryanCrotaz avatar BryanCrotaz commented on July 20, 2024

If that's the case, why isn't there a console output saying so? And shouldn't that be a fatal error?

from issues.

robmen avatar robmen commented on July 20, 2024

If that's the case, why isn't there a console output saying so?

I don't think the heat target even runs... look at the binlog it will show you for sure.

And shouldn't that be a fatal error?

Or maybe a warning?

from issues.

BryanCrotaz avatar BryanCrotaz commented on July 20, 2024

Harvest a folder...
Error if it doesn't exist
Warning if it's empty

from issues.

BryanCrotaz avatar BryanCrotaz commented on July 20, 2024

The files do exist.

msbuild -bl

...

this error for every file:

  heat.exe : warning HEAT5151: Could not harvest data from a file that was expected to be an assembly: D:\a\Client\Client\AgentService\bin\Release\net7.0\Microsoft.Extensions.DependencyInjection.Abstractions.dll. If this file is not an assembly you can ignore this warning. Otherwise, this error detail may be helpful to diagnose the failure: Could not load file or assembly 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. [D:\a\Client\Client\AgentSetupWix4\AgentSetupWix4.wixproj]

from issues.

BryanCrotaz avatar BryanCrotaz commented on July 20, 2024

Basically this thing desperately needs a simple single page tutorial - do these 10 steps to create an installer for a simple app, not 90+ hours (guessing but the first few I've looked at are 90 minutes and there's 70+) of dojo videos that take 15 minutes in some cases to actually get to the title of the video. Do I really need 90 hours of training to build a windows installer?

from issues.

BryanCrotaz avatar BryanCrotaz commented on July 20, 2024
dotnet-install: .NET Core SDK with version '7.0.403' is already installed.

from issues.

robmen avatar robmen commented on July 20, 2024

Basically this thing desperately needs a simple single page tutorial

You sound passionate about this topic. Perhaps you will be the one to write a single-page tutorial and make it available for others.

Personally, I'm more interested in teaching the breadth and depth of software installation using the WiX Toolset. I also enjoy providing historical context so developers new to the domain can understand the why behind the design. That is why I produce the Deployment Dojo show for free.

For example, in the first Deployment Dojo episode on harvesting, I provide some background on heat and its deficiencies and a (possibly too) quick mention of SuppressRegistry which will avoid the error message you are seeing.

not 90+ hours (guessing but the first few I've looked at are 90 minutes and there's 70+) of dojo videos that take 15 minutes in some cases to actually get to the title of the video. Do I really need 90 hours of training to build a windows installer?

At this time, there are 52 episodes of the Deployment Dojo, and on average, they are ~45 minutes. I understand you may be frustrated because you have expectations that aren't being met. However, exaggerating to force your point when everything you are complaining about is provided to you for free by the very people you are complaining at, is not cool.

Remember, this is an Open Source project. The source code displaying the error is available to you. You could investigate exactly why the error message happens and which switch can be used to avoid it.

If you want to be treated like a customer, then you need to pay for a product.

I'm closing this issue since it's turned into a support request. We handle support via Discussions, not issues. If you'd like to open a feature request for heat to error/warn when the harvesting directory is missing, feel free to do so.

from issues.

BryanCrotaz avatar BryanCrotaz commented on July 20, 2024

All I'm suggesting is that you've spent a LOT of time providing a HUGE amount of detail, but you forgot to give a simple primer for someone new to the project. I'd love to write a one pager, but I'm drowning in detail and have no idea how to do it myself, let alone teach it

Why do I need to suppress harvesting registry keys when the problem is in finding the SDK files? I don't understand why the build of the exe found them but the build of the installer can't. I'm not trying to read any registry keys, nor write them during the install.

from issues.

BryanCrotaz avatar BryanCrotaz commented on July 20, 2024

Remember, this is an Open Source project. The source code displaying the error is available to you. You could investigate exactly why the error message happens and which switch can be used to avoid it.

I've googled:

No results found for +wix "could not load file or assembly system.runtime version 7.0.0.0"

+wix HEAT 5151:
https://stackoverflow.com/questions/20904084/heat5151-the-given-assembly-name-or-codebase-was-invalid

I'm not harvesting from the GAC, I'm harvesting from the project output folder, so this isn't relevant to me

https://wix-users.narkive.com/NtZfvrm9/heat-exe-warning-heat5151
I'm not trying to increment the assembly version - I haven't even managed to get the first build to work, let alone an upgrade

#7124
Now I feel I'm going round in circles when the third result in google is my own question!

from issues.

BryanCrotaz avatar BryanCrotaz commented on July 20, 2024

I'm trying to work out where I saw episode 72 of the dojo. I have a clear memory of watching it a couple of days ago. maybe I'm hallucinating after 2 weeks full time trying to build a simple installer and getting depressed and frustrated

from issues.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.