Skip to content

Commit d72d912

Browse files
committed
testapp: Add WinJS app with manually added project.json
As recommended by nuget team: NuGet/Home#2406 (comment) This works around the issue with packages.config and SpecificVersion. Copied GUI and JS code from previous JS test app.
1 parent d900d5c commit d72d912

17 files changed

+96276
-0
lines changed
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup Label="ProjectConfigurations">
4+
<ProjectConfiguration Include="Debug|AnyCPU">
5+
<Configuration>Debug</Configuration>
6+
<Platform>AnyCPU</Platform>
7+
</ProjectConfiguration>
8+
<ProjectConfiguration Include="Debug|ARM">
9+
<Configuration>Debug</Configuration>
10+
<Platform>ARM</Platform>
11+
</ProjectConfiguration>
12+
<ProjectConfiguration Include="Debug|x64">
13+
<Configuration>Debug</Configuration>
14+
<Platform>x64</Platform>
15+
</ProjectConfiguration>
16+
<ProjectConfiguration Include="Debug|x86">
17+
<Configuration>Debug</Configuration>
18+
<Platform>x86</Platform>
19+
</ProjectConfiguration>
20+
<ProjectConfiguration Include="Release|AnyCPU">
21+
<Configuration>Release</Configuration>
22+
<Platform>AnyCPU</Platform>
23+
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
24+
</ProjectConfiguration>
25+
<ProjectConfiguration Include="Release|ARM">
26+
<Configuration>Release</Configuration>
27+
<Platform>ARM</Platform>
28+
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
29+
</ProjectConfiguration>
30+
<ProjectConfiguration Include="Release|x64">
31+
<Configuration>Release</Configuration>
32+
<Platform>x64</Platform>
33+
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
34+
</ProjectConfiguration>
35+
<ProjectConfiguration Include="Release|x86">
36+
<Configuration>Release</Configuration>
37+
<Platform>x86</Platform>
38+
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
39+
</ProjectConfiguration>
40+
</ItemGroup>
41+
<PropertyGroup Label="Globals">
42+
<ProjectGuid>b87e6239-f2ca-4b18-85ae-c8296d3c5e3b</ProjectGuid>
43+
</PropertyGroup>
44+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
45+
<PropertyGroup Condition="'$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '14.0'">
46+
<VisualStudioVersion>14.0</VisualStudioVersion>
47+
</PropertyGroup>
48+
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).Default.props" />
49+
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).props" />
50+
<PropertyGroup>
51+
<TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
52+
<TargetPlatformVersion>10.0.10586.0</TargetPlatformVersion>
53+
<TargetPlatformMinVersion>10.0.10240.0</TargetPlatformMinVersion>
54+
<MinimumVisualStudioVersion>$(VersionNumberMajor).$(VersionNumberMinor)</MinimumVisualStudioVersion>
55+
<DefaultLanguage>en-US</DefaultLanguage>
56+
<PackageCertificateKeyFile>UnitsNet.TestApps.Uwp.WinJS_TemporaryKey.pfx</PackageCertificateKeyFile>
57+
</PropertyGroup>
58+
<ItemGroup>
59+
<AppxManifest Include="package.appxmanifest">
60+
<SubType>Designer</SubType>
61+
</AppxManifest>
62+
<Content Include="index.html" />
63+
<Content Include="images\LockScreenLogo.scale-200.png" />
64+
<Content Include="images\SplashScreen.scale-200.png" />
65+
<Content Include="images\Square150x150Logo.scale-200.png" />
66+
<Content Include="images\Square44x44Logo.scale-200.png" />
67+
<Content Include="images\Square44x44Logo.targetsize-24_altform-unplated.png" />
68+
<Content Include="images\StoreLogo.png" />
69+
<Content Include="images\Wide310x150Logo.scale-200.png" />
70+
<Content Include="js\main.js" />
71+
<Content Include="css\default.css" />
72+
<Content Include="lib\winjs-4.0.1\js\base.js" />
73+
<Content Include="lib\winjs-4.0.1\js\ui.js" />
74+
<Content Include="lib\winjs-4.0.1\css\ui-light.css" />
75+
<Content Include="lib\winjs-4.0.1\css\ui-dark.css" />
76+
<Content Include="project.json" />
77+
<None Include="UnitsNet.TestApps.Uwp.WinJS_TemporaryKey.pfx" />
78+
</ItemGroup>
79+
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).targets" />
80+
<!-- To modify your build process, add your task inside one of the targets below then uncomment
81+
that target and the DisableFastUpToDateCheck PropertyGroup.
82+
Other similar extension points exist, see Microsoft.Common.targets.
83+
<Target Name="BeforeBuild">
84+
</Target>
85+
<Target Name="AfterBuild">
86+
</Target>
87+
<PropertyGroup>
88+
<DisableFastUpToDateCheck>true</DisableFastUpToDateCheck>
89+
</PropertyGroup>
90+
-->
91+
</Project>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
body {
2+
}
1.4 KB
Loading
7.52 KB
Loading
2.87 KB
Loading
1.61 KB
Loading
1.23 KB
Loading
1.42 KB
Loading
3.13 KB
Loading
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8" />
5+
<title>UnitsNet.TestApps.Uwp.WinJS</title>
6+
<link href="lib/winjs-4.0.1/css/ui-light.css" rel="stylesheet" />
7+
<script src="lib/winjs-4.0.1/js/base.js"></script>
8+
<script src="lib/winjs-4.0.1/js/ui.js"></script>
9+
<link href="css/default.css" rel="stylesheet" />
10+
<script src="js/main.js"></script>
11+
<!-- ReSharper disable UnknownCssVendorExtension -->
12+
<style>
13+
#label-container {
14+
-moz-transform-style: preserve-3d;
15+
-ms-transform-style: preserve-3d;
16+
-o-transform-style: preserve-3d;
17+
-webkit-transform-style: preserve-3d;
18+
transform-style: preserve-3d;
19+
width: 100%;
20+
height: 100%;
21+
}
22+
#label {
23+
font-size: 3em;
24+
vertical-align: top;
25+
margin: 0;
26+
text-align: center;
27+
position: relative;
28+
top: 50%;
29+
-moz-transform: translateY(-50%);
30+
-ms-transform: translateY(-50%);
31+
-o-transform: translateY(-50%);
32+
-webkit-transform: translateY(-50%);
33+
transform: translateY(-50%);
34+
}
35+
</style>
36+
<!-- ReSharper restore UnknownCssVendorExtension -->
37+
</head>
38+
<body class="win-type-body">
39+
<div id="label-container">
40+
<p id="label">Content goes here</p>
41+
</div>
42+
</body>
43+
</html>

0 commit comments

Comments
 (0)