Improve Deployment Times for Mobile Project in Visual Studio 2008.
While working on a project mobile device in Visual Studio 2008 targetting .Net Framework 3.5, you can run into a issue where the deployment to the emulator can take a minute or more. There are a couple of ways that will help you get around this issue.
First Method
Step 1: Open windows explorer and go to C:\Windows\Microsoft.NET\Framework\v3.5
Step 2: Take a backup of the file Microsoft.CompactFramework.Common.targets
Step 3: Open the file Microsoft.CompactFramework.Common.targets (You can open this file in Visual Studio)
Step 4: Find this line and change this to
Step 5:Save the file
Step 6: Close and Reopen Visual Studio.
Second Method
Step 1: Open your mobile project in Visual Studio 2008
Step 2: Right click on the project and select Properties.
Step 3: In Propeties screen, go to the Debug tab and add " /p:SkipPlatformVerification=true" to the Command Line Arguments.
I prefer the second method as i am not changing a system setting and it is easier to manage in case i need to change it. An old post from the Visual Studio team will help you in understanding what Platform Verification is and what it does.
Happy Coding.
First Method
Step 1: Open windows explorer and go to C:\Windows\Microsoft.NET\Framework\v3.5
Step 2: Take a backup of the file Microsoft.CompactFramework.Common.targets
Step 3: Open the file Microsoft.CompactFramework.Common.targets (You can open this file in Visual Studio)
Step 4: Find this line
Step 5:Save the file
Second Method
Step 1: Open your mobile project in Visual Studio 2008
Step 2: Right click on the project and select Properties.
Step 3: In Propeties screen, go to the Debug tab and add " /p:SkipPlatformVerification=true" to the Command Line Arguments.
I prefer the second method as i am not changing a system setting and it is easier to manage in case i need to change it. An old post from the Visual Studio team will help you in understanding what Platform Verification is and what it does.
Happy Coding.
Comments
Post a Comment