Add a setting to app.config or will adding the setting to *.exe.config be suffice?











up vote
5
down vote

favorite












A recent article:
https://blogs.msdn.microsoft.com/dotnet/2017/04/05/announcing-the-net-framework-4-7/
announces a possible fix for intermittent problems with touch screen support. As I read the document, one only needs to change the app.config file. See the line:



"You can opt-into the new touch implementation with the following app.config entry.



    <runtime>
<AppContextSwitchOverrides value="Switch.System.Windows.Input.Stylus.EnablePointerSupport=true"/>

</runtime>


under section:



WPF Touch/Stylus support for Windows 10



My question is: Can I just make the change in Myapp.exe.config or must I actually make it in app.config? Perhaps the question could be: Is the app.config info used at compile time or just translated into myapp.exe.config?



Further, I'd like to know if it's ok to leave:



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


The documentation just mentions adding EnablePointerSupport and makes no mention of changing the Version in the config file. I did in fact download the .NET Framework 4.7 and install, but have not changed the Version in the config file. Do I need to?



Thanks.










share|improve this question




















  • 1




    Hi Dave I spent a bit of time helping you out. If you have any questions let me know?
    – Jeremy Thompson
    Nov 30 at 5:29










  • Thanks Jeremy! Very much appreciated.
    – Dave
    Dec 1 at 6:14










  • Update for future readers.... In my case these fixes did not solve our intermittent scrollbar problems. We're still searching for the root cause (which could be hardware, drivers, etc. Not necessarily software). But I think we are now at least using Framework 4.7 and the potential fix correctly and can cross that off our list.
    – Dave
    Dec 1 at 6:16















up vote
5
down vote

favorite












A recent article:
https://blogs.msdn.microsoft.com/dotnet/2017/04/05/announcing-the-net-framework-4-7/
announces a possible fix for intermittent problems with touch screen support. As I read the document, one only needs to change the app.config file. See the line:



"You can opt-into the new touch implementation with the following app.config entry.



    <runtime>
<AppContextSwitchOverrides value="Switch.System.Windows.Input.Stylus.EnablePointerSupport=true"/>

</runtime>


under section:



WPF Touch/Stylus support for Windows 10



My question is: Can I just make the change in Myapp.exe.config or must I actually make it in app.config? Perhaps the question could be: Is the app.config info used at compile time or just translated into myapp.exe.config?



Further, I'd like to know if it's ok to leave:



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


The documentation just mentions adding EnablePointerSupport and makes no mention of changing the Version in the config file. I did in fact download the .NET Framework 4.7 and install, but have not changed the Version in the config file. Do I need to?



Thanks.










share|improve this question




















  • 1




    Hi Dave I spent a bit of time helping you out. If you have any questions let me know?
    – Jeremy Thompson
    Nov 30 at 5:29










  • Thanks Jeremy! Very much appreciated.
    – Dave
    Dec 1 at 6:14










  • Update for future readers.... In my case these fixes did not solve our intermittent scrollbar problems. We're still searching for the root cause (which could be hardware, drivers, etc. Not necessarily software). But I think we are now at least using Framework 4.7 and the potential fix correctly and can cross that off our list.
    – Dave
    Dec 1 at 6:16













up vote
5
down vote

favorite









up vote
5
down vote

favorite











A recent article:
https://blogs.msdn.microsoft.com/dotnet/2017/04/05/announcing-the-net-framework-4-7/
announces a possible fix for intermittent problems with touch screen support. As I read the document, one only needs to change the app.config file. See the line:



"You can opt-into the new touch implementation with the following app.config entry.



    <runtime>
<AppContextSwitchOverrides value="Switch.System.Windows.Input.Stylus.EnablePointerSupport=true"/>

</runtime>


under section:



WPF Touch/Stylus support for Windows 10



My question is: Can I just make the change in Myapp.exe.config or must I actually make it in app.config? Perhaps the question could be: Is the app.config info used at compile time or just translated into myapp.exe.config?



Further, I'd like to know if it's ok to leave:



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


The documentation just mentions adding EnablePointerSupport and makes no mention of changing the Version in the config file. I did in fact download the .NET Framework 4.7 and install, but have not changed the Version in the config file. Do I need to?



Thanks.










share|improve this question















A recent article:
https://blogs.msdn.microsoft.com/dotnet/2017/04/05/announcing-the-net-framework-4-7/
announces a possible fix for intermittent problems with touch screen support. As I read the document, one only needs to change the app.config file. See the line:



"You can opt-into the new touch implementation with the following app.config entry.



    <runtime>
<AppContextSwitchOverrides value="Switch.System.Windows.Input.Stylus.EnablePointerSupport=true"/>

</runtime>


under section:



WPF Touch/Stylus support for Windows 10



My question is: Can I just make the change in Myapp.exe.config or must I actually make it in app.config? Perhaps the question could be: Is the app.config info used at compile time or just translated into myapp.exe.config?



Further, I'd like to know if it's ok to leave:



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


The documentation just mentions adding EnablePointerSupport and makes no mention of changing the Version in the config file. I did in fact download the .NET Framework 4.7 and install, but have not changed the Version in the config file. Do I need to?



Thanks.







c# windows touch app-config






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 27 at 5:12









Jeremy Thompson

39.2k13102198




39.2k13102198










asked Nov 19 at 19:11









Dave

2,61093866




2,61093866








  • 1




    Hi Dave I spent a bit of time helping you out. If you have any questions let me know?
    – Jeremy Thompson
    Nov 30 at 5:29










  • Thanks Jeremy! Very much appreciated.
    – Dave
    Dec 1 at 6:14










  • Update for future readers.... In my case these fixes did not solve our intermittent scrollbar problems. We're still searching for the root cause (which could be hardware, drivers, etc. Not necessarily software). But I think we are now at least using Framework 4.7 and the potential fix correctly and can cross that off our list.
    – Dave
    Dec 1 at 6:16














  • 1




    Hi Dave I spent a bit of time helping you out. If you have any questions let me know?
    – Jeremy Thompson
    Nov 30 at 5:29










  • Thanks Jeremy! Very much appreciated.
    – Dave
    Dec 1 at 6:14










  • Update for future readers.... In my case these fixes did not solve our intermittent scrollbar problems. We're still searching for the root cause (which could be hardware, drivers, etc. Not necessarily software). But I think we are now at least using Framework 4.7 and the potential fix correctly and can cross that off our list.
    – Dave
    Dec 1 at 6:16








1




1




Hi Dave I spent a bit of time helping you out. If you have any questions let me know?
– Jeremy Thompson
Nov 30 at 5:29




Hi Dave I spent a bit of time helping you out. If you have any questions let me know?
– Jeremy Thompson
Nov 30 at 5:29












Thanks Jeremy! Very much appreciated.
– Dave
Dec 1 at 6:14




Thanks Jeremy! Very much appreciated.
– Dave
Dec 1 at 6:14












Update for future readers.... In my case these fixes did not solve our intermittent scrollbar problems. We're still searching for the root cause (which could be hardware, drivers, etc. Not necessarily software). But I think we are now at least using Framework 4.7 and the potential fix correctly and can cross that off our list.
– Dave
Dec 1 at 6:16




Update for future readers.... In my case these fixes did not solve our intermittent scrollbar problems. We're still searching for the root cause (which could be hardware, drivers, etc. Not necessarily software). But I think we are now at least using Framework 4.7 and the potential fix correctly and can cross that off our list.
– Dave
Dec 1 at 6:16












1 Answer
1






active

oldest

votes

















up vote
3
down vote



accepted
+25











Can I just make the change in Myapp.exe.config or must I actually make it in app.config?




If your EXE is deployed you can change the App.Exe.Config, restart the application and the new config settings will be used. If you do this for an ASP.Net application (ie. change the web.config) it will cause the App Pool in IIS to be recycled and new web.config settings to be used.



Obviously add any changes to the actual App.Config so next time you compile its added automatically to the output App.Exe.Config.



You will have some more questions about this and its all documented here, do go through this its a good read:



https://docs.microsoft.com/en-us/dotnet/framework/migration-guide/how-to-configure-an-app-to-support-net-framework-4-or-4-5






The documentation just mentions adding EnablePointerSupport and makes no mention of changing the Version in the config file. I did in fact download the .NET Framework 4.7 and install, but have not changed the Version in the config file. Do I need to?




Unless you're using .Net 4.7 specific features you can leave the version as .Net 4.5.



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


In this case, the article specifically states its a bug fix in .Net 4.7. So you will need to use 4.7.



To change this you edit the Project's Build tab properties (or manually in the config file).



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


Here is a reference to the .Net Frameworks vs SKU's:
https://docs.microsoft.com/en-us/dotnet/framework/configure-apps/file-schema/startup/supportedruntime-element






If app.config is used at compile time for anything other than producing the Myapp.exe.config file.





  • You're right it's used at Compile time to generate the App.Exe.Config.


  • Many people store configuration settings in config files, so an App.Exe.Config can be edited at run-time as well. At the end of the day its simply an XML file.


  • Also note you can have Transforms on your App.Configs for different environments at design-time:



enter image description here






share|improve this answer























  • Thanks Jeremy and sorry for the delay. Marked as answer!
    – Dave
    Dec 1 at 6:13











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
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%2fstackoverflow.com%2fquestions%2f53381140%2fadd-a-setting-to-app-config-or-will-adding-the-setting-to-exe-config-be-suffic%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
3
down vote



accepted
+25











Can I just make the change in Myapp.exe.config or must I actually make it in app.config?




If your EXE is deployed you can change the App.Exe.Config, restart the application and the new config settings will be used. If you do this for an ASP.Net application (ie. change the web.config) it will cause the App Pool in IIS to be recycled and new web.config settings to be used.



Obviously add any changes to the actual App.Config so next time you compile its added automatically to the output App.Exe.Config.



You will have some more questions about this and its all documented here, do go through this its a good read:



https://docs.microsoft.com/en-us/dotnet/framework/migration-guide/how-to-configure-an-app-to-support-net-framework-4-or-4-5






The documentation just mentions adding EnablePointerSupport and makes no mention of changing the Version in the config file. I did in fact download the .NET Framework 4.7 and install, but have not changed the Version in the config file. Do I need to?




Unless you're using .Net 4.7 specific features you can leave the version as .Net 4.5.



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


In this case, the article specifically states its a bug fix in .Net 4.7. So you will need to use 4.7.



To change this you edit the Project's Build tab properties (or manually in the config file).



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


Here is a reference to the .Net Frameworks vs SKU's:
https://docs.microsoft.com/en-us/dotnet/framework/configure-apps/file-schema/startup/supportedruntime-element






If app.config is used at compile time for anything other than producing the Myapp.exe.config file.





  • You're right it's used at Compile time to generate the App.Exe.Config.


  • Many people store configuration settings in config files, so an App.Exe.Config can be edited at run-time as well. At the end of the day its simply an XML file.


  • Also note you can have Transforms on your App.Configs for different environments at design-time:



enter image description here






share|improve this answer























  • Thanks Jeremy and sorry for the delay. Marked as answer!
    – Dave
    Dec 1 at 6:13















up vote
3
down vote



accepted
+25











Can I just make the change in Myapp.exe.config or must I actually make it in app.config?




If your EXE is deployed you can change the App.Exe.Config, restart the application and the new config settings will be used. If you do this for an ASP.Net application (ie. change the web.config) it will cause the App Pool in IIS to be recycled and new web.config settings to be used.



Obviously add any changes to the actual App.Config so next time you compile its added automatically to the output App.Exe.Config.



You will have some more questions about this and its all documented here, do go through this its a good read:



https://docs.microsoft.com/en-us/dotnet/framework/migration-guide/how-to-configure-an-app-to-support-net-framework-4-or-4-5






The documentation just mentions adding EnablePointerSupport and makes no mention of changing the Version in the config file. I did in fact download the .NET Framework 4.7 and install, but have not changed the Version in the config file. Do I need to?




Unless you're using .Net 4.7 specific features you can leave the version as .Net 4.5.



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


In this case, the article specifically states its a bug fix in .Net 4.7. So you will need to use 4.7.



To change this you edit the Project's Build tab properties (or manually in the config file).



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


Here is a reference to the .Net Frameworks vs SKU's:
https://docs.microsoft.com/en-us/dotnet/framework/configure-apps/file-schema/startup/supportedruntime-element






If app.config is used at compile time for anything other than producing the Myapp.exe.config file.





  • You're right it's used at Compile time to generate the App.Exe.Config.


  • Many people store configuration settings in config files, so an App.Exe.Config can be edited at run-time as well. At the end of the day its simply an XML file.


  • Also note you can have Transforms on your App.Configs for different environments at design-time:



enter image description here






share|improve this answer























  • Thanks Jeremy and sorry for the delay. Marked as answer!
    – Dave
    Dec 1 at 6:13













up vote
3
down vote



accepted
+25







up vote
3
down vote



accepted
+25




+25





Can I just make the change in Myapp.exe.config or must I actually make it in app.config?




If your EXE is deployed you can change the App.Exe.Config, restart the application and the new config settings will be used. If you do this for an ASP.Net application (ie. change the web.config) it will cause the App Pool in IIS to be recycled and new web.config settings to be used.



Obviously add any changes to the actual App.Config so next time you compile its added automatically to the output App.Exe.Config.



You will have some more questions about this and its all documented here, do go through this its a good read:



https://docs.microsoft.com/en-us/dotnet/framework/migration-guide/how-to-configure-an-app-to-support-net-framework-4-or-4-5






The documentation just mentions adding EnablePointerSupport and makes no mention of changing the Version in the config file. I did in fact download the .NET Framework 4.7 and install, but have not changed the Version in the config file. Do I need to?




Unless you're using .Net 4.7 specific features you can leave the version as .Net 4.5.



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


In this case, the article specifically states its a bug fix in .Net 4.7. So you will need to use 4.7.



To change this you edit the Project's Build tab properties (or manually in the config file).



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


Here is a reference to the .Net Frameworks vs SKU's:
https://docs.microsoft.com/en-us/dotnet/framework/configure-apps/file-schema/startup/supportedruntime-element






If app.config is used at compile time for anything other than producing the Myapp.exe.config file.





  • You're right it's used at Compile time to generate the App.Exe.Config.


  • Many people store configuration settings in config files, so an App.Exe.Config can be edited at run-time as well. At the end of the day its simply an XML file.


  • Also note you can have Transforms on your App.Configs for different environments at design-time:



enter image description here






share|improve this answer















Can I just make the change in Myapp.exe.config or must I actually make it in app.config?




If your EXE is deployed you can change the App.Exe.Config, restart the application and the new config settings will be used. If you do this for an ASP.Net application (ie. change the web.config) it will cause the App Pool in IIS to be recycled and new web.config settings to be used.



Obviously add any changes to the actual App.Config so next time you compile its added automatically to the output App.Exe.Config.



You will have some more questions about this and its all documented here, do go through this its a good read:



https://docs.microsoft.com/en-us/dotnet/framework/migration-guide/how-to-configure-an-app-to-support-net-framework-4-or-4-5






The documentation just mentions adding EnablePointerSupport and makes no mention of changing the Version in the config file. I did in fact download the .NET Framework 4.7 and install, but have not changed the Version in the config file. Do I need to?




Unless you're using .Net 4.7 specific features you can leave the version as .Net 4.5.



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


In this case, the article specifically states its a bug fix in .Net 4.7. So you will need to use 4.7.



To change this you edit the Project's Build tab properties (or manually in the config file).



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


Here is a reference to the .Net Frameworks vs SKU's:
https://docs.microsoft.com/en-us/dotnet/framework/configure-apps/file-schema/startup/supportedruntime-element






If app.config is used at compile time for anything other than producing the Myapp.exe.config file.





  • You're right it's used at Compile time to generate the App.Exe.Config.


  • Many people store configuration settings in config files, so an App.Exe.Config can be edited at run-time as well. At the end of the day its simply an XML file.


  • Also note you can have Transforms on your App.Configs for different environments at design-time:



enter image description here







share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 27 at 4:33

























answered Nov 27 at 3:13









Jeremy Thompson

39.2k13102198




39.2k13102198












  • Thanks Jeremy and sorry for the delay. Marked as answer!
    – Dave
    Dec 1 at 6:13


















  • Thanks Jeremy and sorry for the delay. Marked as answer!
    – Dave
    Dec 1 at 6:13
















Thanks Jeremy and sorry for the delay. Marked as answer!
– Dave
Dec 1 at 6:13




Thanks Jeremy and sorry for the delay. Marked as answer!
– Dave
Dec 1 at 6:13


















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • 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%2fstackoverflow.com%2fquestions%2f53381140%2fadd-a-setting-to-app-config-or-will-adding-the-setting-to-exe-config-be-suffic%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

Costa Masnaga

Fotorealismo

Sidney Franklin