Skip to content

Commit 48d2388

Browse files
committed
more details in demo script (on console)
1 parent b96f51c commit 48d2388

File tree

2 files changed

+100
-1
lines changed

2 files changed

+100
-1
lines changed

demo.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,12 @@ var vsProjInfo = {
55
ActiveConfiguration: "Debug"
66
}
77

8+
console.log("Parsing '" + vsProjInfo.ProjectFileName + "'...");
9+
810
csproj2ts.getTypeScriptSettings(vsProjInfo).then(function (settings) {
11+
console.log('success!');
912
console.log(settings);
1013
}).catch(function (error) {
14+
console.log('fail!');
1115
console.log(error);
12-
});
16+
});
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="C:\THIS_DOES_NOT EXIST\TypeScript\Microsoft.TypeScript.Default.props" Condition="Exists('$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\TypeScript\Microsoft.TypeScript.Default.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<ProjectGuid>{FF8D9288-C427-4139-B162-E74D73D8F8D5}</ProjectGuid>
7+
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
8+
<OutputType>Library</OutputType>
9+
<OutputPath>bin</OutputPath>
10+
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
11+
<DebugType>full</DebugType>
12+
<DebugSymbols>true</DebugSymbols>
13+
<TypeScriptToolsVersion>1.0</TypeScriptToolsVersion>
14+
<UseIISExpress>true</UseIISExpress>
15+
<IISExpressSSLPort />
16+
<IISExpressAnonymousAuthentication />
17+
<IISExpressWindowsAuthentication />
18+
<IISExpressUseClassicPipelineMode />
19+
</PropertyGroup>
20+
<PropertyGroup>
21+
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">12.0</VisualStudioVersion>
22+
</PropertyGroup>
23+
<PropertyGroup>
24+
<RootNamespace>grunt_ts</RootNamespace>
25+
</PropertyGroup>
26+
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
27+
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\WebApplications\Microsoft.WebApplication.targets" Condition="Exists('$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\WebApplications\Microsoft.WebApplication.targets')" />
28+
<ProjectExtensions>
29+
<VisualStudio>
30+
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
31+
<WebProjectProperties>
32+
<UseIIS>True</UseIIS>
33+
<AutoAssignPort>True</AutoAssignPort>
34+
<DevelopmentServerPort>10690</DevelopmentServerPort>
35+
<DevelopmentServerVPath>/</DevelopmentServerVPath>
36+
<IISUrl>http://localhost:10690/</IISUrl>
37+
<NTLMAuthentication>False</NTLMAuthentication>
38+
<UseCustomServer>False</UseCustomServer>
39+
<CustomServerUrl>
40+
</CustomServerUrl>
41+
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
42+
</WebProjectProperties>
43+
</FlavorProperties>
44+
</VisualStudio>
45+
</ProjectExtensions>
46+
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
47+
<TypeScriptRemoveComments>false</TypeScriptRemoveComments>
48+
<TypeScriptSourceMap>true</TypeScriptSourceMap>
49+
<TypeScriptModuleKind>commonjs</TypeScriptModuleKind>
50+
</PropertyGroup>
51+
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
52+
<TypeScriptRemoveComments>true</TypeScriptRemoveComments>
53+
<TypeScriptSourceMap>false</TypeScriptSourceMap>
54+
</PropertyGroup>
55+
<ItemGroup>
56+
<TypeScriptCompile Include="defs\es6-promises\es6-promises.d.ts" />
57+
<TypeScriptCompile Include="defs\gruntjs\gruntjs.d.ts" />
58+
<TypeScriptCompile Include="defs\node\node.d.ts" />
59+
<TypeScriptCompile Include="defs\tsd.d.ts" />
60+
<TypeScriptCompile Include="defs\underscore.string\underscore.string.d.ts" />
61+
<TypeScriptCompile Include="defs\underscore\underscore.d.ts" />
62+
<TypeScriptCompile Include="tasks\modules\amdLoader.ts" />
63+
<TypeScriptCompile Include="tasks\modules\cacheUtils.ts" />
64+
<TypeScriptCompile Include="tasks\modules\compile.ts" />
65+
<TypeScriptCompile Include="tasks\modules\html2ts.ts" />
66+
<TypeScriptCompile Include="tasks\modules\interfaces.d.ts" />
67+
<TypeScriptCompile Include="tasks\modules\reference.ts" />
68+
<TypeScriptCompile Include="tasks\modules\templateCache.ts" />
69+
<TypeScriptCompile Include="tasks\modules\transformers.ts" />
70+
<TypeScriptCompile Include="tasks\modules\utils.ts" />
71+
<TypeScriptCompile Include="tasks\ts.ts" />
72+
</ItemGroup>
73+
<ItemGroup>
74+
<Content Include="Gruntfile.js" />
75+
<Content Include="sample\commonjs\Gruntfile.js" />
76+
<Content Include="sample\Gruntfile.js" />
77+
</ItemGroup>
78+
<ItemGroup>
79+
<Content Include="docs\amdLoader.md" />
80+
<Content Include="docs\fast.md" />
81+
<Content Include="docs\html2ts.md" />
82+
</ItemGroup>
83+
<ItemGroup>
84+
<Content Include="build.bat" />
85+
<Content Include="CHANGELOG.md" />
86+
<Content Include="package.json" />
87+
<Content Include="README.md" />
88+
<Content Include="tsd.json" />
89+
<Content Include="tslint.json" />
90+
</ItemGroup>
91+
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
92+
<TypeScriptTarget>ES3</TypeScriptTarget>
93+
</PropertyGroup>
94+
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\TypeScript\Microsoft.TypeScript.targets" Condition="Exists('$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\TypeScript\Microsoft.TypeScript.targets')" />
95+
</Project>

0 commit comments

Comments
 (0)