Tag: msbuild

通过msbuild require.js优化器不起作用,但直接在命令行上

在我的代码中,下面的命令,在PowerShell提示符下执行 r.js -o name=main out=main_opt.js baseUrl=. 工作正常,并输出以下内容 Tracing dependencies for: main Uglifying file: C:/Users/Scott/Documents/d/proj/Scripts/Coffee/Directory/main_opt.js C:/Users/Scott/Documents/d/proj/Scripts/Coffee/Directory/main_opt.js —————- C:/Users/Scott/Documents/d/proj/Scripts/Coffee/Directory/DirectoryVM.js C:/Users/Scott/Documents/d/proj/Scripts/Coffee/Directory/main.js 通过msbuild我得到以下 RequireJSOptimize: working dir = C:\Users\Scott\Documents\d\proj\Scripts\Coffee\Directory\ r.js -o name=main out=main_opt.js baseUrl=. node.js:203 throw e; // process.nextTick error, or 'error' event on first tick ^ Error: Error evaluating module "undefined" at location "undefined": TypeError: Cannot call method 'write' […]

节点JS和MS构build – 这是可能的吗?

我正在写MS压缩JavaScript生成任务,我希望我可以使用Uglify作为我的压缩提供商。 由于Uglify是用JavaScript编写的,我显然需要一个.NET端口。 幸运的是,似乎至less有两种可能的select – Uglify CS和Uglify.NET 。 不幸的是,在去年都没有见过单一的提交,所以我想他们不支持Uglify的新版本2。 考虑到这一点,我想知道是否有某种方式来评估.NET构build任务的原始代码? 或者更一般地说,有没有办法从.NET中调用Node.JS? 我可以想象从我的任务调用Node.JS服务,但是,这似乎是一个矫枉过正。

TFS上的节点构build问题

TFS构build除Visual Studio项目节点以外的所有项目。 我得到这个错误: $/IT/my-home.njsproj – 1 error(s), 0 warning(s), View Log File C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets (132): Could not copy the file "obj\Debug\my-home.exe" because it was not found. 我试图在目标文件中执行以下操作: <Disable_CopyWebApplication Condition="'$(Disable_CopyWebApplication)' == ''">True</Disable_CopyWebApplication>

在Visual Studio 2015中构buildnode-gyp项目时发生LNK1104错误

我已经尝试了一切,我有正确版本的Python(Python27),安装了Windows SDK 8.1,也安装了Visual C ++,但构build仍然失败。 我正在使用Visual Studio 2015社区编辑器顺便说一句。 当我尝试从cmd执行node-gyp build ,出现以下错误: > C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.Cpp.Platform.t argets(44,5): error MSB8020: The builds tools for v140 (Platform Toolset = 'v14 0') cannot be found. To build using the v140 build tools, either click the Proj ect menu or right-click the solution, and then select "Update VC++ Projects…" . […]

Windows 10 node-gyp无法构build:MSBUILD失败,退出代码1

Windows 10,Microsoft Visual Studio 2013,Node v0.12.7,node-gyp v2.0.2 我总是得到node-gyp的错误生成错误: Error: `C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe` failed with exit code: 1 另外在红色的颜色描述: Could not write lines to file "Release\obj\validation\validation.tlog\validation.lastbuildstate". The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 […]

使用包含Node.js项目的TeamCity构buildCloud Service包

我目前在Visual Studio中有一个包含三个angular色的Azure云服务 – 两个ASP.NET Webangular色和一个非常简单的Node.jsangular色。 这将在Visual Studio中本地构build和正确打包,并完美部署到Azure计算模拟器中。 当试图用TeamCity构build解决scheme时,MSBuild没有声称: [15:22:48] C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\Windows Azure Tools\2.3\Microsoft.WindowsAzure.targets(1253,5): error : WAT070 : The referenced assembly C:\TeamCity\buildAgent\work\a1a1a1a1a1a1a1a1\NodejsApp\NodejsApp.exe was not found. Please make sure to build the role project that produces this assembly before building this Windows Azure Cloud Service Project. [C:\TeamCity\buildAgent\work\a1a1a1a1a1a1a1a1\CloudService\CloudService.ccproj] 这似乎表明它期待build立Node.js项目来发出.exe文件。 Cloud Service项目中Node.js应用程序的项目参考如下: <ProjectReference Include="..\NodejsApp\NodejsApp.njsproj"> <Name>NodejsApp</Name> <Project>{5b84f347-2866-40ee-9252-a1a1a1a1a1a1}</Project> <Private>True</Private> <RoleType>Web</RoleType> […]

如何为msbuild.exe指定附加的包含目录

我正在尝试安装nodejs模块ibm_db。 我遇到的问题是,为了安装这个模块node-gyp需要使用msbuild来构build它,但是它不会检测到我已经安装的一些头文件。 如何将我的附加头文件的目录添加到某个path,以便在试图编译任何项目时,msbuild.exe能够find它们? 在Linux上,我只是简单地设置cpath =并且一切都很好。 谢谢!

MSBuild是否需要在Angular2的依赖项(在node_modules中)中传输.ts文件以使Angular2正常工作?

背景 我有一个与Angular2集成的ASP.NET MVC项目。 根据Angular.io快速入门指南 – 我在我的解决scheme文件中创build一个文件夹与默认的Angular2结构… ├── app | └── … ├── node_modules | └── … ├── typings | └── … | systemjs.config.js | tsconfig.json | typings.json | package.json …和一个默认的package.json文件: "dependencies": { "@angular/common": "2.0.0", "@angular/compiler": "2.0.0", "@angular/core": "2.0.0", "@angular/forms": "2.0.0", "@angular/http": "2.0.0", "@angular/platform-browser": "2.0.0", "@angular/platform-browser-dynamic": "2.0.0", "@angular/router": "3.0.0", "@angular/upgrade": "2.0.0", "core-js": "^2.4.1", "reflect-metadata": "^0.1.3", "rxjs": […]

cordova平台添加wp7失败 – msbuild错误

我想创build由我已经通过Node.js安装的Cordova 3.1.0供电的跨平台应用程序。 我已经安装了Visual Studio 2012和Windows Phone SDK 8 +更新。 我也补充说 我在环境variables的path看起来: C:\Python33\;C:\Program Files\PHP\v5.3;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files\Microsoft\Web Platform Installer\;C:\Users\Filip\AppData\Local\Temp;C:\Python27;C:\Users\Filip\AppData\Roaming\npm;E:\dev\adt-bundle\sdk\platform-tools;E:\dev\adt-bundle\sdk\tools;E:\dev\WinAnt\bin;C:\Windows\Microsoft.NET\Framework\v4.0.30319 我已经通过命令创build应用程序: cordova create d4m com.example.d4m Drupal4me 我已经添加了Android平台: cordova […]

在Windows 7上的节点失败

============================== 已解决:从节点4.0.0切换到0.12.7。 Node v4.0.0似乎是相当原始的 我读过很多文章,他们没有帮助我。 任何解决方法? 我已经在Windows 7上安装了Visual Studio Express 2013,并set GYP_MSVS_VERSION=2013 。 但是在npm install我仍然得到了与socket.io依赖相关的以下错误: error C2995: 'v8::Local<T> _NanEnsureLocal(v8::Local<T>)' : function template error C3083: 'smalloc': the symbol to the left of a '::' must be a type [ error C2039: 'FreeCallback' : is not a member of 'node' [ error C2061: syntax error : identifier […]