Way to run .NET application on Win7 without installing anything?












1















We have a few special computers that are for security reasons offline and use W7 with some tweaks. I cannot install anything on these machines, all I can do is run a portable program.



I would need to run my .NET application, is there any way I could run it without having to install .NET framework; something like pre-compiling it with linked all the libraries and then run it as a stand-alone app, like .NET native does for W10?










share|improve this question





























    1















    We have a few special computers that are for security reasons offline and use W7 with some tweaks. I cannot install anything on these machines, all I can do is run a portable program.



    I would need to run my .NET application, is there any way I could run it without having to install .NET framework; something like pre-compiling it with linked all the libraries and then run it as a stand-alone app, like .NET native does for W10?










    share|improve this question



























      1












      1








      1








      We have a few special computers that are for security reasons offline and use W7 with some tweaks. I cannot install anything on these machines, all I can do is run a portable program.



      I would need to run my .NET application, is there any way I could run it without having to install .NET framework; something like pre-compiling it with linked all the libraries and then run it as a stand-alone app, like .NET native does for W10?










      share|improve this question
















      We have a few special computers that are for security reasons offline and use W7 with some tweaks. I cannot install anything on these machines, all I can do is run a portable program.



      I would need to run my .NET application, is there any way I could run it without having to install .NET framework; something like pre-compiling it with linked all the libraries and then run it as a stand-alone app, like .NET native does for W10?







      windows-7 .net-framework portable






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 30 '18 at 0:29









      fixer1234

      18.7k144882




      18.7k144882










      asked Dec 29 '18 at 10:52









      John VJohn V

      1102




      1102






















          1 Answer
          1






          active

          oldest

          votes


















          1














          According to the article
          What version of the .NET Framework is included in what version of the OS,
          Windows 7 includes the .NET Framework 3.5.1 as an OS component.
          This means you will have available the .NET Framework 2.0 SP2, 3.0 SP2
          and 3.5 SP1 plus a few post 3.5 SP1 bug fixes.
          You will not see it in Programs and Features because it is built-in.



          So all you have to do is to downgrade your app to .NET 3 and it will run.



          If you are using Visual Studio 2017, it might be possible to package the
          .Net Framework with the application. See the Microsoft blog:
          Package a .NET desktop application using the Desktop Bridge and Visual Studio Preview.






          share|improve this answer


























          • The thing you say about packaging a .NET application with Desktop Bridge is only relevant for Win10, and refers to a way to distribute non-Windows-Store apps (either Win32 or .NET) through the Windows Store. It has nothing to do with packaging an entire .NET framework with your app; in fact, Desktop Bridge apps, if they use .NET at all, need to target a specific version of it (4.6.2, if memory serves). With that said, the stuff about just making your app target .NET 2.0-3.5.1 and distributing it as-is will work for Win7 (just don't package it in a Win10 .APPX bundle!)

            – CBHacking
            Dec 30 '18 at 8:33













          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',
          autoActivateHeartbeat: false,
          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%2f1388706%2fway-to-run-net-application-on-win7-without-installing-anything%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









          1














          According to the article
          What version of the .NET Framework is included in what version of the OS,
          Windows 7 includes the .NET Framework 3.5.1 as an OS component.
          This means you will have available the .NET Framework 2.0 SP2, 3.0 SP2
          and 3.5 SP1 plus a few post 3.5 SP1 bug fixes.
          You will not see it in Programs and Features because it is built-in.



          So all you have to do is to downgrade your app to .NET 3 and it will run.



          If you are using Visual Studio 2017, it might be possible to package the
          .Net Framework with the application. See the Microsoft blog:
          Package a .NET desktop application using the Desktop Bridge and Visual Studio Preview.






          share|improve this answer


























          • The thing you say about packaging a .NET application with Desktop Bridge is only relevant for Win10, and refers to a way to distribute non-Windows-Store apps (either Win32 or .NET) through the Windows Store. It has nothing to do with packaging an entire .NET framework with your app; in fact, Desktop Bridge apps, if they use .NET at all, need to target a specific version of it (4.6.2, if memory serves). With that said, the stuff about just making your app target .NET 2.0-3.5.1 and distributing it as-is will work for Win7 (just don't package it in a Win10 .APPX bundle!)

            – CBHacking
            Dec 30 '18 at 8:33


















          1














          According to the article
          What version of the .NET Framework is included in what version of the OS,
          Windows 7 includes the .NET Framework 3.5.1 as an OS component.
          This means you will have available the .NET Framework 2.0 SP2, 3.0 SP2
          and 3.5 SP1 plus a few post 3.5 SP1 bug fixes.
          You will not see it in Programs and Features because it is built-in.



          So all you have to do is to downgrade your app to .NET 3 and it will run.



          If you are using Visual Studio 2017, it might be possible to package the
          .Net Framework with the application. See the Microsoft blog:
          Package a .NET desktop application using the Desktop Bridge and Visual Studio Preview.






          share|improve this answer


























          • The thing you say about packaging a .NET application with Desktop Bridge is only relevant for Win10, and refers to a way to distribute non-Windows-Store apps (either Win32 or .NET) through the Windows Store. It has nothing to do with packaging an entire .NET framework with your app; in fact, Desktop Bridge apps, if they use .NET at all, need to target a specific version of it (4.6.2, if memory serves). With that said, the stuff about just making your app target .NET 2.0-3.5.1 and distributing it as-is will work for Win7 (just don't package it in a Win10 .APPX bundle!)

            – CBHacking
            Dec 30 '18 at 8:33
















          1












          1








          1







          According to the article
          What version of the .NET Framework is included in what version of the OS,
          Windows 7 includes the .NET Framework 3.5.1 as an OS component.
          This means you will have available the .NET Framework 2.0 SP2, 3.0 SP2
          and 3.5 SP1 plus a few post 3.5 SP1 bug fixes.
          You will not see it in Programs and Features because it is built-in.



          So all you have to do is to downgrade your app to .NET 3 and it will run.



          If you are using Visual Studio 2017, it might be possible to package the
          .Net Framework with the application. See the Microsoft blog:
          Package a .NET desktop application using the Desktop Bridge and Visual Studio Preview.






          share|improve this answer















          According to the article
          What version of the .NET Framework is included in what version of the OS,
          Windows 7 includes the .NET Framework 3.5.1 as an OS component.
          This means you will have available the .NET Framework 2.0 SP2, 3.0 SP2
          and 3.5 SP1 plus a few post 3.5 SP1 bug fixes.
          You will not see it in Programs and Features because it is built-in.



          So all you have to do is to downgrade your app to .NET 3 and it will run.



          If you are using Visual Studio 2017, it might be possible to package the
          .Net Framework with the application. See the Microsoft blog:
          Package a .NET desktop application using the Desktop Bridge and Visual Studio Preview.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Dec 30 '18 at 7:03

























          answered Dec 29 '18 at 11:18









          harrymcharrymc

          257k14268568




          257k14268568













          • The thing you say about packaging a .NET application with Desktop Bridge is only relevant for Win10, and refers to a way to distribute non-Windows-Store apps (either Win32 or .NET) through the Windows Store. It has nothing to do with packaging an entire .NET framework with your app; in fact, Desktop Bridge apps, if they use .NET at all, need to target a specific version of it (4.6.2, if memory serves). With that said, the stuff about just making your app target .NET 2.0-3.5.1 and distributing it as-is will work for Win7 (just don't package it in a Win10 .APPX bundle!)

            – CBHacking
            Dec 30 '18 at 8:33





















          • The thing you say about packaging a .NET application with Desktop Bridge is only relevant for Win10, and refers to a way to distribute non-Windows-Store apps (either Win32 or .NET) through the Windows Store. It has nothing to do with packaging an entire .NET framework with your app; in fact, Desktop Bridge apps, if they use .NET at all, need to target a specific version of it (4.6.2, if memory serves). With that said, the stuff about just making your app target .NET 2.0-3.5.1 and distributing it as-is will work for Win7 (just don't package it in a Win10 .APPX bundle!)

            – CBHacking
            Dec 30 '18 at 8:33



















          The thing you say about packaging a .NET application with Desktop Bridge is only relevant for Win10, and refers to a way to distribute non-Windows-Store apps (either Win32 or .NET) through the Windows Store. It has nothing to do with packaging an entire .NET framework with your app; in fact, Desktop Bridge apps, if they use .NET at all, need to target a specific version of it (4.6.2, if memory serves). With that said, the stuff about just making your app target .NET 2.0-3.5.1 and distributing it as-is will work for Win7 (just don't package it in a Win10 .APPX bundle!)

          – CBHacking
          Dec 30 '18 at 8:33







          The thing you say about packaging a .NET application with Desktop Bridge is only relevant for Win10, and refers to a way to distribute non-Windows-Store apps (either Win32 or .NET) through the Windows Store. It has nothing to do with packaging an entire .NET framework with your app; in fact, Desktop Bridge apps, if they use .NET at all, need to target a specific version of it (4.6.2, if memory serves). With that said, the stuff about just making your app target .NET 2.0-3.5.1 and distributing it as-is will work for Win7 (just don't package it in a Win10 .APPX bundle!)

          – CBHacking
          Dec 30 '18 at 8:33




















          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.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1388706%2fway-to-run-net-application-on-win7-without-installing-anything%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

          Сан-Квентин

          Алькесар

          Josef Freinademetz