How to specify to not use .NET 4.7.2 in app.config











up vote
2
down vote

favorite












After installing the Visual Studio 2019 preview, and the required .NET framework 4.7.2, I found that another (.NET) application does not start anymore, and gives me an error:




The value specified in System.Windows.Markup.StaticExtension caused an exception




This application is not mine, so I can't change the source code.



Is there a way to specify in the application's config file to not use 4.7.2, but 4.5 instead? I changed the sku version in the supportedRuntime section from 4.5 to 4.5.1 and 4.5.3 (which are both installed), but that didn't change anything.



<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.3" />




My OS is Windows 10 Enterprise, release 1709.



Here's a screenshot showing the .NET installs I have:



.NET Framework installations



And



Microsoft optional components










share|improve this question
























  • I think the required .NET framework version is defined during compilation or in the source code. So I don't think you can change that for the executable only.
    – Saaru Lindestøkke
    Dec 5 at 10:33












  • @SaaruLindestøkke If that were the case it wouldn't have been 4.7.2 in the first place.
    – Berend
    Dec 5 at 11:18










  • @Ramhound Thanks, I added a screenshot, and Yes, I probably meant targeting packs ;-). I also found out that my problem might be caused by having both 4.7.1 and 4.7.2 installed: developercommunity.visualstudio.com/content/problem/307924/…. I'm currently trying to find out what's the best way to uninstall 4.7.1
    – Berend
    Dec 6 at 8:11










  • @Ramhound Windows 10 Enterprise, release 1709
    – Berend
    Dec 6 at 12:42












  • @Ramhound Correct, that's exactly what I did. I now have 4.7.2, and I think I want to revert to 4.7.1. Uninstalling VS2019 didn't help here, and neither did running the 4.7.1 offline installer with the /repair or /uninstall option
    – Berend
    Dec 6 at 13:21















up vote
2
down vote

favorite












After installing the Visual Studio 2019 preview, and the required .NET framework 4.7.2, I found that another (.NET) application does not start anymore, and gives me an error:




The value specified in System.Windows.Markup.StaticExtension caused an exception




This application is not mine, so I can't change the source code.



Is there a way to specify in the application's config file to not use 4.7.2, but 4.5 instead? I changed the sku version in the supportedRuntime section from 4.5 to 4.5.1 and 4.5.3 (which are both installed), but that didn't change anything.



<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.3" />




My OS is Windows 10 Enterprise, release 1709.



Here's a screenshot showing the .NET installs I have:



.NET Framework installations



And



Microsoft optional components










share|improve this question
























  • I think the required .NET framework version is defined during compilation or in the source code. So I don't think you can change that for the executable only.
    – Saaru Lindestøkke
    Dec 5 at 10:33












  • @SaaruLindestøkke If that were the case it wouldn't have been 4.7.2 in the first place.
    – Berend
    Dec 5 at 11:18










  • @Ramhound Thanks, I added a screenshot, and Yes, I probably meant targeting packs ;-). I also found out that my problem might be caused by having both 4.7.1 and 4.7.2 installed: developercommunity.visualstudio.com/content/problem/307924/…. I'm currently trying to find out what's the best way to uninstall 4.7.1
    – Berend
    Dec 6 at 8:11










  • @Ramhound Windows 10 Enterprise, release 1709
    – Berend
    Dec 6 at 12:42












  • @Ramhound Correct, that's exactly what I did. I now have 4.7.2, and I think I want to revert to 4.7.1. Uninstalling VS2019 didn't help here, and neither did running the 4.7.1 offline installer with the /repair or /uninstall option
    – Berend
    Dec 6 at 13:21













up vote
2
down vote

favorite









up vote
2
down vote

favorite











After installing the Visual Studio 2019 preview, and the required .NET framework 4.7.2, I found that another (.NET) application does not start anymore, and gives me an error:




The value specified in System.Windows.Markup.StaticExtension caused an exception




This application is not mine, so I can't change the source code.



Is there a way to specify in the application's config file to not use 4.7.2, but 4.5 instead? I changed the sku version in the supportedRuntime section from 4.5 to 4.5.1 and 4.5.3 (which are both installed), but that didn't change anything.



<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.3" />




My OS is Windows 10 Enterprise, release 1709.



Here's a screenshot showing the .NET installs I have:



.NET Framework installations



And



Microsoft optional components










share|improve this question















After installing the Visual Studio 2019 preview, and the required .NET framework 4.7.2, I found that another (.NET) application does not start anymore, and gives me an error:




The value specified in System.Windows.Markup.StaticExtension caused an exception




This application is not mine, so I can't change the source code.



Is there a way to specify in the application's config file to not use 4.7.2, but 4.5 instead? I changed the sku version in the supportedRuntime section from 4.5 to 4.5.1 and 4.5.3 (which are both installed), but that didn't change anything.



<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.3" />




My OS is Windows 10 Enterprise, release 1709.



Here's a screenshot showing the .NET installs I have:



.NET Framework installations



And



Microsoft optional components







.net-framework






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 6 at 14:55

























asked Dec 5 at 10:17









Berend

1,5161713




1,5161713












  • I think the required .NET framework version is defined during compilation or in the source code. So I don't think you can change that for the executable only.
    – Saaru Lindestøkke
    Dec 5 at 10:33












  • @SaaruLindestøkke If that were the case it wouldn't have been 4.7.2 in the first place.
    – Berend
    Dec 5 at 11:18










  • @Ramhound Thanks, I added a screenshot, and Yes, I probably meant targeting packs ;-). I also found out that my problem might be caused by having both 4.7.1 and 4.7.2 installed: developercommunity.visualstudio.com/content/problem/307924/…. I'm currently trying to find out what's the best way to uninstall 4.7.1
    – Berend
    Dec 6 at 8:11










  • @Ramhound Windows 10 Enterprise, release 1709
    – Berend
    Dec 6 at 12:42












  • @Ramhound Correct, that's exactly what I did. I now have 4.7.2, and I think I want to revert to 4.7.1. Uninstalling VS2019 didn't help here, and neither did running the 4.7.1 offline installer with the /repair or /uninstall option
    – Berend
    Dec 6 at 13:21


















  • I think the required .NET framework version is defined during compilation or in the source code. So I don't think you can change that for the executable only.
    – Saaru Lindestøkke
    Dec 5 at 10:33












  • @SaaruLindestøkke If that were the case it wouldn't have been 4.7.2 in the first place.
    – Berend
    Dec 5 at 11:18










  • @Ramhound Thanks, I added a screenshot, and Yes, I probably meant targeting packs ;-). I also found out that my problem might be caused by having both 4.7.1 and 4.7.2 installed: developercommunity.visualstudio.com/content/problem/307924/…. I'm currently trying to find out what's the best way to uninstall 4.7.1
    – Berend
    Dec 6 at 8:11










  • @Ramhound Windows 10 Enterprise, release 1709
    – Berend
    Dec 6 at 12:42












  • @Ramhound Correct, that's exactly what I did. I now have 4.7.2, and I think I want to revert to 4.7.1. Uninstalling VS2019 didn't help here, and neither did running the 4.7.1 offline installer with the /repair or /uninstall option
    – Berend
    Dec 6 at 13:21
















I think the required .NET framework version is defined during compilation or in the source code. So I don't think you can change that for the executable only.
– Saaru Lindestøkke
Dec 5 at 10:33






I think the required .NET framework version is defined during compilation or in the source code. So I don't think you can change that for the executable only.
– Saaru Lindestøkke
Dec 5 at 10:33














@SaaruLindestøkke If that were the case it wouldn't have been 4.7.2 in the first place.
– Berend
Dec 5 at 11:18




@SaaruLindestøkke If that were the case it wouldn't have been 4.7.2 in the first place.
– Berend
Dec 5 at 11:18












@Ramhound Thanks, I added a screenshot, and Yes, I probably meant targeting packs ;-). I also found out that my problem might be caused by having both 4.7.1 and 4.7.2 installed: developercommunity.visualstudio.com/content/problem/307924/…. I'm currently trying to find out what's the best way to uninstall 4.7.1
– Berend
Dec 6 at 8:11




@Ramhound Thanks, I added a screenshot, and Yes, I probably meant targeting packs ;-). I also found out that my problem might be caused by having both 4.7.1 and 4.7.2 installed: developercommunity.visualstudio.com/content/problem/307924/…. I'm currently trying to find out what's the best way to uninstall 4.7.1
– Berend
Dec 6 at 8:11












@Ramhound Windows 10 Enterprise, release 1709
– Berend
Dec 6 at 12:42






@Ramhound Windows 10 Enterprise, release 1709
– Berend
Dec 6 at 12:42














@Ramhound Correct, that's exactly what I did. I now have 4.7.2, and I think I want to revert to 4.7.1. Uninstalling VS2019 didn't help here, and neither did running the 4.7.1 offline installer with the /repair or /uninstall option
– Berend
Dec 6 at 13:21




@Ramhound Correct, that's exactly what I did. I now have 4.7.2, and I think I want to revert to 4.7.1. Uninstalling VS2019 didn't help here, and neither did running the 4.7.1 offline installer with the /repair or /uninstall option
– Berend
Dec 6 at 13:21










1 Answer
1






active

oldest

votes

















up vote
0
down vote













There is no answer to my question, simply because it is not possible to have more than one 4.x version installed at the same time. Any .NET application that targets 4.x will run using the latest installed version.



Reverting to 4.7.1 is not intuitive, because the 4.7 versions do not appear in the Add/Remove programs section of Windows. What I did was:




  1. Uninstall VS 2019

  2. Start appwiz.cpl

  3. Select Display installed updates

  4. Uninstall KB4073120, which is the .NET Framework 4.7.2 for Windows 10:1709

  5. Reboot






share|improve this answer





















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1380959%2fhow-to-specify-to-not-use-net-4-7-2-in-app-config%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    There is no answer to my question, simply because it is not possible to have more than one 4.x version installed at the same time. Any .NET application that targets 4.x will run using the latest installed version.



    Reverting to 4.7.1 is not intuitive, because the 4.7 versions do not appear in the Add/Remove programs section of Windows. What I did was:




    1. Uninstall VS 2019

    2. Start appwiz.cpl

    3. Select Display installed updates

    4. Uninstall KB4073120, which is the .NET Framework 4.7.2 for Windows 10:1709

    5. Reboot






    share|improve this answer

























      up vote
      0
      down vote













      There is no answer to my question, simply because it is not possible to have more than one 4.x version installed at the same time. Any .NET application that targets 4.x will run using the latest installed version.



      Reverting to 4.7.1 is not intuitive, because the 4.7 versions do not appear in the Add/Remove programs section of Windows. What I did was:




      1. Uninstall VS 2019

      2. Start appwiz.cpl

      3. Select Display installed updates

      4. Uninstall KB4073120, which is the .NET Framework 4.7.2 for Windows 10:1709

      5. Reboot






      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        There is no answer to my question, simply because it is not possible to have more than one 4.x version installed at the same time. Any .NET application that targets 4.x will run using the latest installed version.



        Reverting to 4.7.1 is not intuitive, because the 4.7 versions do not appear in the Add/Remove programs section of Windows. What I did was:




        1. Uninstall VS 2019

        2. Start appwiz.cpl

        3. Select Display installed updates

        4. Uninstall KB4073120, which is the .NET Framework 4.7.2 for Windows 10:1709

        5. Reboot






        share|improve this answer












        There is no answer to my question, simply because it is not possible to have more than one 4.x version installed at the same time. Any .NET application that targets 4.x will run using the latest installed version.



        Reverting to 4.7.1 is not intuitive, because the 4.7 versions do not appear in the Add/Remove programs section of Windows. What I did was:




        1. Uninstall VS 2019

        2. Start appwiz.cpl

        3. Select Display installed updates

        4. Uninstall KB4073120, which is the .NET Framework 4.7.2 for Windows 10:1709

        5. Reboot







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Dec 6 at 14:54









        Berend

        1,5161713




        1,5161713






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1380959%2fhow-to-specify-to-not-use-net-4-7-2-in-app-config%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

            Mangá

             ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕