Tag: visual studio

在Visual Studio中节点js项目错误。 “指定的path,文件名或两者太长”

我在Visual Studio 2013中创buildBlank Express Application。在安装npm模块之后,我运行它。 它运行良好,没有错误。 但是,如果我closures解决scheme,而不是打开它再次项目加载失败,我看到输出窗口中出现错误,说:“指定的path,文件名或两者都太长,完全合格的文件名必须小于260”。 我该怎么办解决它? 更新:csproj文件 <?xml version="1.0" encoding="utf-8"?> <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">11.0</VisualStudioVersion> <VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath> <Name>ExpressApp7</Name> <RootNamespace>ExpressApp7</RootNamespace> </PropertyGroup> <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> <PropertyGroup> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <SchemaVersion>2.0</SchemaVersion> <ProjectGuid>83aac9f6-1094-40fc-8ce9-2ca0fe8ccbac</ProjectGuid> <ProjectHome>.</ProjectHome> <StartupFile>app.js</StartupFile> <SearchPath> </SearchPath> <WorkingDirectory>.</WorkingDirectory> <OutputPath>.</OutputPath> <TargetFrameworkVersion>v4.0</TargetFrameworkVersion> <ProjectTypeGuids>{3AF33F2E-1136-4D97-BBB7-1795711AC8B8};{349c5851-65df-11da-9384-00065b846f21};{9092AA53-FB77-4645-B42D-1CCCA6BD08BD}</ProjectTypeGuids> <ProjectView>ProjectFiles</ProjectView> <NodejsPort>1337</NodejsPort> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)' == […]

实习生与Visual Studio 2013集成

环境 我们目前在Visual Studio 2013 Update 4中使用了2个Chutzpah包( 这个和这个 ),使我们能够针对我们正在开发的angular度应用程序执行单独的Jasmineunit testing(Chutzpah上下文菜单“在浏览器中打开”)。 我们目前必须使用Chrome开发人员工具来设置断点并debuggingunit testing。 目前的Jenkins构build运行Moqunit testing对C#应用程序代码和SauceLabs跨浏览器seleniumtesting。 JStesting的下一步是将它们作为Jenkins构build的一部分与其他testing一起执行。 为了实现这个目前最好的工具是实习生 。 我们的要求 执行JStesting并将计算覆盖范围作为Jenkins在SauceLab上构build的一部分。 执行并逐步(debugging)JSunit testing 关于1,我可以从Intern的例子中看到,我们可能必须(可以)重写我们的Interntesting,让它们在Jenkins和SauceLabs上执行。 关于2,这篇文章的重点: 我的问题 可以使用开发人员工具在Chrome中debugging以Intern示例的方式编写的testing吗? 是否需要类似Chutzpah的工具来将Visual Studio与Intern集成? ( 这是类似的工具吗?)

debugging与WebPack捆绑在一起的Visual Studio中的JavaScript代码

我是JS开发新手,在Visual Studio 2013中debuggingJS代码遇到问题。我们的Web应用程序的JS部分被WebPack捆绑到一个app.bundle.js文件中,每当任何js文件发生更改时,都会自动更新这个文件(我们使用特殊的手表脚本,使用npm)。 我能够使用Chrome和debugger;来debuggingJS代码debugger; derecitve。 它显示正确的映射文件在这种types的path“webpack:///./Scripts/”。 这意味着WebPack会正确地创build映射。 但是我想直接从VS调用使用调用堆栈,断点等。 有任何想法吗? 提前致谢!

需要使用Visual Studio 2013的Node.js模块

我试图让视觉工作室扩展node.js识别我的npm模块。 这是我现在所拥有的: import http = require('http'); import brain = require('brain'); var port = process.env.port || 1337 http.createServer(function (req, res) { res.writeHead(200, { 'Content-Type': 'text/plain' }); res.end(train()); }).listen(port); var train = function () { var net = new brain.NeuralNetwork(); net.train([{ input: [0, 0], output: [0] }, { input: [0, 1], output: [1] }, { input: [1, […]

节点typescript客户端debugging

是可以从Visual Studio(2015)直接debugging(断点,手表) 客户端 .ts打字稿文件? 我发现在谷歌和stackoverflow的大部分相关问题build议使用其他浏览器devtools如铬。 是否有可能在视觉工作室做到这一点? 当我创build一个.ts脚本(比如说index.ts)时,它将被转换成一个index.js,然后这个脚本标记中的index.html文件将被引用。 如何在.ts文件中设置断点(虽然它是被引用的.js)?

visual studio 2015 – 同时debuggingnode.js和浏览器

我已经在Visual Studio 2015中创build了一个node.js项目,它在启动时启动了Web浏览器(Microsoft Edge)。 就目前来说,我只能debugging我的node.js代码。 有什么办法可以同时debugging我的整个应用程序端到端? 也就是说,为了能够在我的服务器端node.js代码和我的客户端的js代码中放置断点。 我知道有可能在Web风暴(与铬)…所以我不知道我是否可以在Visual Studio中有相同的经验。 谢谢!

我的名字空间没有定义。 打字稿

我得到了Visual Studio Community 2015 + Node.js工具,我创build了“Blank Node.js控制台应用程序”Typescript项目 我已经添加了一个TypeScript文件,TypeScript1.ts并提出以下内容: module MyModule { export class Calculator { add(x: number, y: number): number { return x + y; }; constructor() { } } } 在主文件中,我把这个: /// <reference path="TypeScript1.ts" /> console.log('Hello world'); var subject: MyModule.Calculator; subject = new MyModule.Calculator(); var result: number = subject.add(2, 3); console.log(result); 它的构build没有问题,但是当我尝试debugging/运行时,它指出: ReferenceError: MyModule […]

在Visual Studio 2015 for Angular2上启动一个项目

我用stackoverflow extesively找出如何让Angular2在Visual Studio 2015专业工作。 没有真正的答案,但这是我发现的工作。 我已经看到了一堆,我的意思是如何让Visual Studio 2015 Pro与Angular2项目一起工作的一堆说明和示例。 现在,对于使用Visual Studio Community的所有说明,或者使用任何其他编辑器,都会产生一些困惑。 以下是我用自己的实验所得到的结果,也是Yakov Fain和Anton Moiseev撰写的“Angular 2 Development with Stylcript”一书的开头。 可从曼宁出版物。 无论如何,这是我的一个项目的基本设置。 首先安装Nodejs,这样可以将它用于你的包pipe理器。 不要通过NuGet搞砸,只需从网站上安装Windows安装包。 另外我也尝试了另一个pakcagepipe理器,但我认为Node有最新的软件包。 接下来你可以运行npm init,它会创build一个默认的package.json文件。 之后编辑它,使其看起来或多或less像下面这样: { "name": "helloworld", "version": "1.0.0", "description": "test npm setup", "main": "main.ts", "scripts": { "start": "live-server" }, "author": "name", "license": "ISC", "dependencies": { "angular2": "2.0.0-beta.0", "es6-promise": "^3.0.2", "es6-shim": "^0.33.3", […]

如何在Visual Studio中使用cmder mini而不是默认cmd(node.js)?

当我在Visual Studio 2013中运行我的node.js应用程序,然后启动默认控制台(cmd)。 我更喜欢CMDER MINI ,如何将默认控制台更改为我的Visual Studio中的cmder mini?

Visual Studio 2015不识别Ionic和angularjs参数

首先,向大家问好。 经过4天的深入探索,为什么我的Visual Studio不能识别离子html标签和AngularJS参数,我来到这里find答案,也可以帮助其他人。 已安装的Visual Studio社区2015 – 更新3 为Visual Studio安装了Apache Cordova工具 已安装的Node.js 64位(v6.3.1) 在npm上安装离子:“npm install -g cordova ionic” 在控制台上创build一个离子项目:“ionic start myProjectName” 在Visual Studio解决scheme中转换(来自现有代码的项目)。 先build立下载其余的东西。 打开离子html和: 项目结构: PS:我不使用Resharper,我从Extensions安装了Ionic Pack,什么都没有发生。 提前致谢。