dcsimg
Results 1 to 2 of 2

Thread: [RESOLVED] Trouble with .NET Framework launch condition in Windows 10

  1. #1

    Thread Starter
    Addicted Member Spybot's Avatar
    Join Date
    Jan 2019
    Posts
    189

    Resolved [RESOLVED] Trouble with .NET Framework launch condition in Windows 10

    Hello!

    I'm trying to deploy an application I developed in VS 2019 (VB.NET) on a windows 10 OS PC.
    In VS, when I build the setup(.exe & .msi) files, they get build successfully, but I get a warning message in my "Output" window:

    message:
    WARNING: The target version of the .NET Framework in the project does not match the .NET Framework launch condition version '.NET Framework 4.6.1'. Update the version of the .NET Framework launch condition to match the target version of the.NET Framework in the Advanced Compile Options Dialog Box (VB) or the Application Page (C#, F#).

    So I went to Advanced Compile Options, and I found no option to change the .NET Framework launch condition.
    Name:  04.jpg
Views: 151
Size:  29.2 KB

    In my Main Project's Settings I have:
    Name:  02.PNG
Views: 145
Size:  25.2 KB

    In my Setup Project's properties I Have the .Net Framework Prerequisites set to:
    Name:  03.jpg
Views: 150
Size:  50.9 KB

    My Windows 10 comes by default with:
    Name:  01.PNG
Views: 150
Size:  34.3 KB

    I even checked what's in my Main Project's app.config file.
    <startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2"/></startup>

    So, why I keep getting this message when I'm trying to install my setup file?
    Name:  00.PNG
Views: 144
Size:  6.4 KB

    After this message, it won't even let me install the .Net Framework 4.6.1, because it says there's already a newer version installed, so I'm stuck.

    I need some guidance please.

  2. #2

    Thread Starter
    Addicted Member Spybot's Avatar
    Join Date
    Jan 2019
    Posts
    189

    Re: Trouble with .NET Framework launch condition in Windows 10

    Nevermind... I found the solution:
    Assuming that you have similar conditions as the ones I posted above, you can follow these steps to solve the problem.

    1.- Right-Click on the Deployment Project and select: View/Launch Conditions

    2.- you'll get a window like this:
    Name:  x1.PNG
Views: 104
Size:  13.3 KB
    in this window you select the .Net Framework item.

    3.- Go to the properties window and you'll find:
    Name:  x2.PNG
Views: 109
Size:  15.5 KB

    4.- Select the one you want, and ... Done!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width