vs-2015-preview

How can I identify and analyze local variables and parameters with Roslyn code diagnostics?

∥☆過路亽.° 提交于 2019-12-12 15:22:12
问题 I'm confused which method to use on the AnalysisContext context object to have every function/method's local variables anazlyed: either RegisterSymbolAction() or RegisterSyntaxNodeAction() . It's likely RegisterSymbolAction() as per the sample Diagnostic with Code Fix (NuGet + VSIX) in the Roslyn SDK Project Templates.vsix. I'm debugging using a simple console app whose Main() has a handful of local variables of type string and int . I've tried these two, but neither will trigger any variable

Visual Studio 2015 Preview breaks SQL Server hierarchyid

强颜欢笑 提交于 2019-12-12 13:55:52
问题 After installing VS2015, SQL Server can no longer call ToString() method for hierarchyid CLR type - for some values it works, for others it throws the following exception: A .NET Framework error occurred during execution of user-defined routine or aggregate "hierarchyid": Microsoft.SqlServer.Types.HierarchyIdException: 24000: SqlHierarchyId operation failed because HierarchyId object was constructed from an invalid binary string. This is easily reproduced by running the following simple query

DOM Explorer not working in VS2015 RC

我怕爱的太早我们不能终老 提交于 2019-12-11 10:55:48
问题 The DOM Explorer is not working for me in VS 2015 RC. (Version 14.0.22823.1) It looks like this: (just one big button) I have gone through the options/settings but nothing seems to fix the issue. Have anybody experienced the same issue/problem or maybe an idea how to fix it? 回答1: Update Internet Explorer. I can't find system requirements for the DOM Explorer anywhere, but I suspect it requires IE 11. I had this same issue (with IE 10) until I ran Windows Update and restored the hidden IE 11

VS2015 preview: NDK_ROOT is not defined

倾然丶 夕夏残阳落幕 提交于 2019-12-10 20:06:22
问题 I am trying to install VS2015 preview to see how to develop a c++ android app. The online secondary installer is very slow so I cancelled it and tried to install the tools separately one by one. It seemed to be OK. Then I created a c++ project for android and tried to compile it, but I got an error: 1>------ Build started: Project: Android1.NativeActivity, Configuration: Debug ARM ------ 1> ANDROID_HOME=C:\Program Files (x86)\Android\android-sdk 1> ANT_HOME=C:\Program Files (x86)\Microsoft

Visual Studio 2015 Setup Blocked

随声附和 提交于 2019-12-10 19:32:21
问题 I get at Setup Blocked trying to install VS 2015 on win 7 x64 I had a CTP version installed, but I have uninstalled it, ran a reg clean, manual search and removed any key with vs 2015 or version=14, but stil I get this error. :-( from the log file: Condition 'CurrentOperation = "Install" AND (CommunityCore_Version14 < v14.0.23104.0) AND (ProfessionalCore_Version14 > v0.0.0.0) AND (ProfessionalCore_Version14 < v14.0.23104.0) AND NOT(ProfessionalCore_Version14 = v14.0.23107.0) AND (UltimateCore

ASP.NET vNext - MissingMethodException: Method not found: Microsoft.CodeAnalysis.Diagnostic> EmitResult.get_Diagnostics()'

大城市里の小女人 提交于 2019-12-10 14:14:25
问题 I upgraded this morning to VS2015 RC, and I created a new project using the ASP.NET 5 Template - Web Site. I have an error that I am not able to solve: An unhandled exception occurred while processing the request. MissingMethodException: Method not found: 'System .Collections.Immutable.ImmutableArray`1 Microsoft.CodeAnalysis.Emit.EmitResult.get_Diagnostics()'. Microsoft.AspNet.Mvc.Razor.RoslynCompilationService.Compile(RelativeFileInfo fileInfo, String compilationContent) Here is the full

T4 Template in VS 2015

℡╲_俬逩灬. 提交于 2019-12-10 13:47:40
问题 How do I get T4 Template support in Visual Studio 2015 ? In VS 2015 the file property does not allow to specify the *tt file to be marked and allow to run from context menu. I am using VS 2015 CTP6. 回答1: Tried VS2015 Ultimate CTP6 and T4 support is in (as well as debugging T4 which is nice). One specify TextTemplatingFileGenerator as Custom tool as before and when saving the .TT file it is executed. There's a context menu called "Run Custom Tool" which seems to execute the .TT file as well.

Entity Framework 6 not recognizing AddSqlServer()

喜你入骨 提交于 2019-12-07 14:34:05
问题 I am trying to use EF6 with VS2015 CTP and ASP.NET MVC 6. it is not recognizing the below mentioned code in startup.cs which I added when I was using EF7. public void ConfigureServices(IServiceCollection services) { services.AddEntityFramework(Configuration) .AddSqlServer() .AddDbContext<VNDBContext>(options => options.UseSqlServer(Configuration.Get("Data:VNDBContext:ConnectionString"))); services.AddMvc().Configure<MvcOptions>(options => { var jsonFormatter = (JsonOutputFormatter)options

Make local TFS build agent to use v14 msbuild tools

点点圈 提交于 2019-12-06 05:02:35
问题 I've got a couple of ASP.NET vNext applications and I want my CI server to also be able to build them. Both my local machine and the CI server are running VS2015 RC. Then we've got VS Online and a local build controller - which is the server mentioned. However, I cannot get builds going since it seems to be looking for v12 tooling - which does not include anything DNX. So - building the solution gives: The Dnx Runtime package needs to be installed. See output window for more details It is

Publish to Azure fails with “ Unrecognized link extension 'contentLibExtension'” Error

亡梦爱人 提交于 2019-12-05 12:04:57
I am trying to publish ASP.NET MVC 6 App to Azure with Visual Studio 2015 CTP. And getting the following error Publishing with publish method [MSDeploy] Calling msdeploy with the command: ["C:\Program Files (x86)\IIS\Microsoft Web Deploy\msdeploy.exe" -source:IisApp='C:\Users\*****\AppData\Local\Temp\AspNetPublish\NgCalendar-28\wwwroot' -dest:IisApp='ngcalendar',ComputerName='https://ngcalendar.scm.azurewebsites.net/msdeploy.axd',UserName='$ngcalendar',Password='{PASSWORD-REMOVED-FROM-LOG}',IncludeAcls='False',AuthType='Basic' -verb:sync -enableLink:contentLibExtension -enableRule