Showing posts with label local. Show all posts
Showing posts with label local. Show all posts
Sunday, March 1, 2015
How to have different local web config settings for a Visual Studio ASP NET C Web TFS Project
Today we started an ASP.NET C# Project under VisualStudio 2012 using Team Foundation Server. We ran into the problem that we need to store some local path settings in the web.config file, but they are different on every developers computer.
How-I-fixed-it:
The solution is, to split the web.config up into several files and just reference the files using the configSource="sectionName.config" Attribute in the corresponding section in the web.config. Dont add these local files to the project, to not get them overwritten by each other.
Heres a sample:
web.config:
<applicationSettings>
<KCM.Properties.Settings configSource="KCM.Properties.Settings.config" />
</applicationSettings>
KCM.Properties.Settings.config:
xml version="1.0" encoding="utf-8" ?>
<KCM.Properties.Settings>
<setting name="DataStoragePath" serializeAs="String">
<value>D:inetpubftproot</value>
</setting>
</KCM.Properties.Settings>
Here i found the right information to get the solution:
Read more »
How-I-fixed-it:
The solution is, to split the web.config up into several files and just reference the files using the configSource="sectionName.config" Attribute in the corresponding section in the web.config. Dont add these local files to the project, to not get them overwritten by each other.
Heres a sample:
web.config:
<applicationSettings>
<KCM.Properties.Settings configSource="KCM.Properties.Settings.config" />
</applicationSettings>
KCM.Properties.Settings.config:
xml version="1.0" encoding="utf-8" ?>
<KCM.Properties.Settings>
<setting name="DataStoragePath" serializeAs="String">
<value>D:inetpubftproot</value>
</setting>
</KCM.Properties.Settings>
Here i found the right information to get the solution:
http://code-inside.de/blog/2009/11/03/howto-eine-eigene-configsection-schreiben-custom-configsections/
http://blog.andreloker.de/post/2008/06/16/Keep-your-config-clean-with-external-config-files.aspx
http://www.tomot.de/en-us/article/5/asp.net/how-to-use-web.config-transforms-to-replace-appsettings-and-connectionstrings
https://devio.wordpress.com/2013/04/24/handling-web-config-variants-in-source-control-based-solutions/
Saturday, February 28, 2015
How can i change move re locate the local temp folder of Microsoft OneDrive Skydrive to a different location
I wanted to move the local temp folder of OneDrive to a different harddrive on my computer.
How-I-fixed-it:
I found the right hints here: http://answers.microsoft.com/en-us/onedrive/wiki/sdoptions-sdfileset/change-the-onedrive-folder-location/147dade2-830b-46ee-bf7e-36a8eab9446a
Read more »
How-I-fixed-it:
I found the right hints here: http://answers.microsoft.com/en-us/onedrive/wiki/sdoptions-sdfileset/change-the-onedrive-folder-location/147dade2-830b-46ee-bf7e-36a8eab9446a
Change the OneDrive Folder Location
Technical Level : Basic
Summary
Learn how to change the OneDrive folder location. This is useful if you have a limited storage capacity main drive but a separate storage drive and you want your OneDrive content synced to the separate drive. This is not for OneDrive for Business.
Details
Many people use two separate drives on their computers: a main drive like an SSD to run the operating system and other programs, and a regular hard drive to store the bulk of their content. OneDrive defaults to the C:UserOneDrive location, however you can change it wherever you want.
Change the OneDrive Location in Windows 8 and Previous
To change the OneDrive folder location in Windows 8 and previous versions, you have unlink OneDrive from your account and then repeat the setup process:- Right-click on the OneDrive icon in the notification area and then select Settings
- Select "Settings" and then select "Unlink OneDrive"
- Follow the setup process again and ensure to select the new drive or location to have OneDrive sync to; you must wait for your files to download again to the new location
Change the OneDrive Location in Windows 8.1
To change the OneDrive folder location in Windows 8.1, you can simply change the location directly through the Properties menu of the OneDrive folder:- Open File Explorer, right-click on the OneDrive folder in the navigation pane (left-hand side), and then select Properties
- Click the "Location" tab and then select "Move"
- Select the location where you want OneDrive to sync to and then click OK
Subscribe to:
Posts (Atom)