Skip to content

Commit 827bbd5

Browse files
committed
Updated the solution to Visual Studio 2015, the .NET is still 2.0
1 parent 2a62229 commit 827bbd5

File tree

11 files changed

+375
-82
lines changed

11 files changed

+375
-82
lines changed

STPSLDemo/STPSLDemo.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<AppDesignerFolder>Properties</AppDesignerFolder>
1515
<RootNamespace>STPSLDemo</RootNamespace>
1616
<AssemblyName>STPSLDemo</AssemblyName>
17-
<TargetFrameworkVersion>v3.0</TargetFrameworkVersion>
17+
<TargetFrameworkVersion>v5.0</TargetFrameworkVersion>
1818
<SilverlightApplication>true</SilverlightApplication>
1919
<SupportedCultures>
2020
</SupportedCultures>
@@ -29,7 +29,7 @@
2929
<ThrowErrorsInValidation>false</ThrowErrorsInValidation>
3030
<FileUpgradeFlags>
3131
</FileUpgradeFlags>
32-
<OldToolsVersion>3.5</OldToolsVersion>
32+
<OldToolsVersion>4.0</OldToolsVersion>
3333
<UpgradeBackupLocation>
3434
</UpgradeBackupLocation>
3535
<TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier>
Lines changed: 35 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,48 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
3-
<Deployment xmlns="http://schemas.microsoft.com/windowsphone/2009/deployment" AppPlatformVersion="7.1">
4-
<App xmlns="" ProductID="{ae084ade-0fbd-498b-b14e-c2d10925116d}" Title="STPWPDemo" RuntimeType="Silverlight" Version="1.0.0.0" Genre="apps.normal" Author="STPWPDemo author" Description="Sample description" Publisher="STPWPDemo">
2+
<Deployment xmlns="http://schemas.microsoft.com/windowsphone/2012/deployment" AppPlatformVersion="8.0">
3+
<DefaultLanguage xmlns="" code="" />
4+
<App xmlns="" ProductID="{ae084ade-0fbd-498b-b14e-c2d10925116d}" Title="STPWPDemo" RuntimeType="Silverlight" Version="1.0.0.0" Genre="apps.normal" Author="STPWPDemo author" Description="Sample description" Publisher="STPWPDemo" PublisherID="{14be4d1a-05b9-4f24-8b61-9ce3028ac5c1}">
55
<IconPath IsRelative="true" IsResource="false">ApplicationIcon.png</IconPath>
66
<Capabilities>
7-
<Capability Name="ID_CAP_GAMERSERVICES"/>
8-
<Capability Name="ID_CAP_IDENTITY_DEVICE"/>
9-
<Capability Name="ID_CAP_IDENTITY_USER"/>
10-
<Capability Name="ID_CAP_LOCATION"/>
11-
<Capability Name="ID_CAP_MEDIALIB"/>
12-
<Capability Name="ID_CAP_MICROPHONE"/>
13-
<Capability Name="ID_CAP_NETWORKING"/>
14-
<Capability Name="ID_CAP_PHONEDIALER"/>
15-
<Capability Name="ID_CAP_PUSH_NOTIFICATION"/>
16-
<Capability Name="ID_CAP_SENSORS"/>
17-
<Capability Name="ID_CAP_WEBBROWSERCOMPONENT"/>
18-
<Capability Name="ID_CAP_ISV_CAMERA"/>
19-
<Capability Name="ID_CAP_CONTACTS"/>
20-
<Capability Name="ID_CAP_APPOINTMENTS"/>
7+
<Capability Name="ID_CAP_GAMERSERVICES" />
8+
<Capability Name="ID_CAP_IDENTITY_DEVICE" />
9+
<Capability Name="ID_CAP_IDENTITY_USER" />
10+
<Capability Name="ID_CAP_LOCATION" />
11+
<Capability Name="ID_CAP_MICROPHONE" />
12+
<Capability Name="ID_CAP_NETWORKING" />
13+
<Capability Name="ID_CAP_PHONEDIALER" />
14+
<Capability Name="ID_CAP_PUSH_NOTIFICATION" />
15+
<Capability Name="ID_CAP_SENSORS" />
16+
<Capability Name="ID_CAP_WEBBROWSERCOMPONENT" />
17+
<Capability Name="ID_CAP_ISV_CAMERA" />
18+
<Capability Name="ID_CAP_CONTACTS" />
19+
<Capability Name="ID_CAP_APPOINTMENTS" />
20+
<Capability Name="ID_CAP_MEDIALIB_AUDIO" />
21+
<Capability Name="ID_CAP_MEDIALIB_PHOTO" />
22+
<Capability Name="ID_CAP_MEDIALIB_PLAYBACK" />
2123
</Capabilities>
2224
<Tasks>
23-
<DefaultTask Name ="_default" NavigationPage="MainPage.xaml"/>
25+
<DefaultTask Name="_default" NavigationPage="MainPage.xaml" />
2426
</Tasks>
2527
<Tokens>
2628
<PrimaryToken TokenID="STPWPDemoToken" TaskName="_default">
27-
<TemplateType5>
28-
<BackgroundImageURI IsRelative="true" IsResource="false">Background.png</BackgroundImageURI>
29+
<TemplateFlip>
30+
<SmallImageURI IsResource="false" IsRelative="true">Background.png</SmallImageURI>
2931
<Count>0</Count>
32+
<BackgroundImageURI IsResource="false" IsRelative="true">Background.png</BackgroundImageURI>
3033
<Title>STPWPDemo</Title>
31-
</TemplateType5>
34+
<BackContent></BackContent>
35+
<BackBackgroundImageURI></BackBackgroundImageURI>
36+
<BackTitle></BackTitle>
37+
<DeviceLockImageURI></DeviceLockImageURI>
38+
<HasLarge>false</HasLarge>
39+
</TemplateFlip>
3240
</PrimaryToken>
3341
</Tokens>
42+
<ScreenResolutions>
43+
<ScreenResolution Name="ID_RESOLUTION_WVGA" />
44+
<ScreenResolution Name="ID_RESOLUTION_WXGA" />
45+
<ScreenResolution Name="ID_RESOLUTION_HD720P" />
46+
</ScreenResolutions>
3447
</App>
35-
</Deployment>
48+
</Deployment>

STPWPDemo/STPWPDemo.csproj

Lines changed: 62 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,39 @@
1111
<AppDesignerFolder>Properties</AppDesignerFolder>
1212
<RootNamespace>STPWPDemo</RootNamespace>
1313
<AssemblyName>STPWPDemo</AssemblyName>
14-
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
15-
<SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
16-
<TargetFrameworkProfile>WindowsPhone71</TargetFrameworkProfile>
17-
<TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier>
14+
<TargetFrameworkVersion>v8.0</TargetFrameworkVersion>
15+
<SilverlightVersion>
16+
</SilverlightVersion>
17+
<TargetFrameworkProfile>
18+
</TargetFrameworkProfile>
19+
<TargetFrameworkIdentifier>WindowsPhone</TargetFrameworkIdentifier>
1820
<SilverlightApplication>true</SilverlightApplication>
1921
<SupportedCultures>
2022
</SupportedCultures>
2123
<XapOutputs>true</XapOutputs>
2224
<GenerateSilverlightManifest>true</GenerateSilverlightManifest>
23-
<XapFilename>STPWPDemo.xap</XapFilename>
25+
<XapFilename>STPWPDemo_$(Configuration)_$(Platform).xap</XapFilename>
2426
<SilverlightManifestTemplate>Properties\AppManifest.xml</SilverlightManifestTemplate>
2527
<SilverlightAppEntry>STPWPDemo.App</SilverlightAppEntry>
2628
<ValidateXaml>true</ValidateXaml>
2729
<ThrowErrorsInValidation>true</ThrowErrorsInValidation>
30+
<OldToolsVersion>4.0</OldToolsVersion>
31+
<MinimumVisualStudioVersion>11.0</MinimumVisualStudioVersion>
32+
<PublishUrl>publish\</PublishUrl>
33+
<Install>true</Install>
34+
<InstallFrom>Disk</InstallFrom>
35+
<UpdateEnabled>false</UpdateEnabled>
36+
<UpdateMode>Foreground</UpdateMode>
37+
<UpdateInterval>7</UpdateInterval>
38+
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
39+
<UpdatePeriodically>false</UpdatePeriodically>
40+
<UpdateRequired>false</UpdateRequired>
41+
<MapFileExtensions>true</MapFileExtensions>
42+
<ApplicationRevision>0</ApplicationRevision>
43+
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
44+
<IsWebBootstrapper>false</IsWebBootstrapper>
45+
<UseApplicationTrust>false</UseApplicationTrust>
46+
<BootstrapperEnabled>true</BootstrapperEnabled>
2847
</PropertyGroup>
2948
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
3049
<DebugSymbols>true</DebugSymbols>
@@ -64,16 +83,32 @@
6483
<CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories>
6584
<CodeAnalysisIgnoreBuiltInRules>true</CodeAnalysisIgnoreBuiltInRules>
6685
</PropertyGroup>
67-
<ItemGroup>
68-
<Reference Include="Microsoft.Phone" />
69-
<Reference Include="Microsoft.Phone.Interop" />
70-
<Reference Include="System.Windows" />
71-
<Reference Include="system" />
72-
<Reference Include="System.Core" />
73-
<Reference Include="System.Net" />
74-
<Reference Include="System.Xml" />
75-
<Reference Include="mscorlib.extensions" />
76-
</ItemGroup>
86+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
87+
<PlatformTarget />
88+
<OutputPath>Bin\x86\Debug</OutputPath>
89+
<DebugSymbols>true</DebugSymbols>
90+
<DebugType>full</DebugType>
91+
<Optimize>false</Optimize>
92+
</PropertyGroup>
93+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
94+
<PlatformTarget />
95+
<OutputPath>Bin\x86\Release</OutputPath>
96+
<DebugType>pdbonly</DebugType>
97+
<Optimize>true</Optimize>
98+
</PropertyGroup>
99+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM'">
100+
<PlatformTarget />
101+
<OutputPath>Bin\ARM\Debug</OutputPath>
102+
<DebugSymbols>true</DebugSymbols>
103+
<DebugType>full</DebugType>
104+
<Optimize>false</Optimize>
105+
</PropertyGroup>
106+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM'">
107+
<PlatformTarget />
108+
<OutputPath>Bin\ARM\Release</OutputPath>
109+
<DebugType>pdbonly</DebugType>
110+
<Optimize>true</Optimize>
111+
</PropertyGroup>
77112
<ItemGroup>
78113
<Compile Include="App.xaml.cs">
79114
<DependentUpon>App.xaml</DependentUpon>
@@ -116,7 +151,9 @@
116151
</ItemGroup>
117152
<ItemGroup>
118153
<None Include="Properties\AppManifest.xml" />
119-
<None Include="Properties\WMAppManifest.xml" />
154+
<None Include="Properties\WMAppManifest.xml">
155+
<SubType>Designer</SubType>
156+
</None>
120157
</ItemGroup>
121158
<ItemGroup>
122159
<Content Include="ApplicationIcon.png">
@@ -136,8 +173,15 @@
136173
<Name>SmartThreadPoolWP</Name>
137174
</ProjectReference>
138175
</ItemGroup>
139-
<Import Project="$(MSBuildExtensionsPath)\Microsoft\Silverlight for Phone\$(TargetFrameworkVersion)\Microsoft.Silverlight.$(TargetFrameworkProfile).Overrides.targets" />
140-
<Import Project="$(MSBuildExtensionsPath)\Microsoft\Silverlight for Phone\$(TargetFrameworkVersion)\Microsoft.Silverlight.CSharp.targets" />
176+
<ItemGroup>
177+
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
178+
<Visible>False</Visible>
179+
<ProductName>.NET Framework 3.5 SP1</ProductName>
180+
<Install>false</Install>
181+
</BootstrapperPackage>
182+
</ItemGroup>
183+
<Import Project="$(MSBuildExtensionsPath)\Microsoft\$(TargetFrameworkIdentifier)\$(TargetFrameworkVersion)\Microsoft.$(TargetFrameworkIdentifier).$(TargetFrameworkVersion).Overrides.targets" />
184+
<Import Project="$(MSBuildExtensionsPath)\Microsoft\$(TargetFrameworkIdentifier)\$(TargetFrameworkVersion)\Microsoft.$(TargetFrameworkIdentifier).CSharp.targets" />
141185
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
142186
Other similar extension points exist, see Microsoft.Common.targets.
143187
<Target Name="BeforeBuild">

0 commit comments

Comments
 (0)