visual-studio-2012

Visual Studio 2012 T4 templates generating XML gives error

半腔热情 提交于 2019-12-22 05:06:59
问题 I'm using visual studio 2012 to generate XML from a T4 template. The top of the template looks like <#@ template language="VBv4" hostspecific="True" debug="True" #> <#@ output extension="wmef" #> <?xml version="1.0" encoding="utf-8" standalone="yes"?> The T4 template correctly generates the XML. This is no problem. However visual studio is getting confused and it additionally tries to process the template itself as XML and reports build errors saying the XML is ill formed which of course it

Suppress Xml warning for ServiceReference .cs file

隐身守侯 提交于 2019-12-22 04:59:15
问题 Working with MVC4 and VS2012 , I am using a Service Reference , which auto generates a Reference.cs file. When I build, I get dozens of warnings as errors that read 'Missing XML comment for publicly visible type or member...' I have found a similar answer here, which references a workaround found in this blog, which suggests adding the following fix into the CSProj file: <Target Name="XamlGeneratedCodeWarningRemoved" AfterTargets="XamlMarkupCompilePass1"> <Exec Command="for %%f in (@

Visual Studio 2012's Intellisense no longer accepting suggestion on spacebar press

怎甘沉沦 提交于 2019-12-22 04:42:19
问题 I've been using Visual Studio 2005, 2008, 2010 on multiple PC's, installed there by other person or by me. Always intellisense suggestion on it worked like this: I start typing, window pops with suggestions, with current suggestion highlighted, and I can press spacebar to accept the suggestion. However, since i installed Visual Studio 2012 on my current PC (it is a relatively fresh Win7 64x install, it had VS2010 installed before) it works differently. Now, it no longer highlights the

the remote name could not be resolved 'www.nuget.org'

泄露秘密 提交于 2019-12-22 04:41:08
问题 Just recently I am having trouble accessing the nuget.org website and using the Package manager inside of Visual Studio 2012. In fact just yesterday evening when I attempted to install some packages I encountered the above error. In addition I can not access www.nuget.org from any of my web browsers or my iPad on the same network. As far as I am aware no changes have taken place on my network. I attempted to navigate to www.nuget.org through a proxy and it did load. So I can only assume there

Drastic performance differences: debug vs release

烈酒焚心 提交于 2019-12-22 04:40:18
问题 I have a simple algorithm which converts a bayer image channel (BGGR,RGGB,GBRG,GRBG) to rgb (demosaicing but without neighbors). In my implementation I have pre-set offset vectors which help me to translate the bayer channel index to its corresponding rgb channel indices. Only problem is I'm getting awful performance in debug mode with MSVC11. Under release, for an input of 3264X2540 size the function completes in ~60ms. For the same input in debug, the function completes in ~20,000ms. That's

The difference between EF6 and EF4.1 in files hierarchy

梦想与她 提交于 2019-12-22 04:39:20
问题 I'm a beginner to Entity Framework . I notice that When I use EF6 with Visual studio 2013 : I have .Designer.cs empty file with this comment: // T4 code generation is enabled for model 'C:\Users\Luka\Desktop\Test\EF-db2008\AdventureWorks\AdventureWorksLib\AdventureWorksLib\AWLTModel.edmx'. // To enable legacy code generation, change the value of the 'Code Generation Strategy' designer // property to 'Legacy ObjectContext'. This property is available in the Properties Window when the model //

Visual Studio Hangs on Loading UI Library

允我心安 提交于 2019-12-22 04:30:13
问题 I'm stumped and I'm considering formatting my hard disk and starting fresh. I thought I'd try this as a last-ditch effort. When I open Visual Studio 2012 (not a solution, just VS itself), it usually hangs for minutes. This past time (see XML below) it hung for about 13 minutes. Below is the snippet from ActivityLog.xml when starting VS with the /log switch. I don't know what to make of this data. Much googling has shown others with similar, but not identical problems. If you notice the

Why doesn't this code compile in VS2010 with .NET 4.0?

狂风中的少年 提交于 2019-12-22 04:18:14
问题 Somehow following code doesn't compile in VS2010 but compiles in VS2012 without changes. The problematic line in VS2010 is names.Select(foo.GetName) error CS1928: 'string[]' does not contain a definition for 'Select' and the best extension method overload 'System.Linq.Enumerable.Select<TSource,TResult>(System.Collections.Generic.IEnumerable<TSource>, System.Func<TSource,TResult>)' has some invalid arguments. using System; using System.Linq; namespace ConsoleApplication1 { class Program {

Problems adding a service reference to a WP8 app

a 夏天 提交于 2019-12-22 04:09:31
问题 I try to add a service reference to the http://www.webservicex.com/globalweather.asmx?WSDL web service. I go to Add service reference, it discovers it just fine, but when i try to hit OK, I get the error: Unable to check out current file. The file may be read-only or locked, or you may need to check the file out manually. I also tried adding a web reference under the "Advanced" tab, but there isnt any option to do so. I tried doing so in a 7.1 targeted app, same error. My friend is doing this

Cannot connect to SQL Server Express 2014 from Visual Studio 2012

不打扰是莪最后的温柔 提交于 2019-12-22 03:58:36
问题 My question is regarding retrieving data from SQL Server (Express 2014) into Visual Studio (Professional 2012). I am following a tutorial re usage of the drop down list. When I use 'Choose Data Source' I can proceed as far as selecting the database. When I try to use 'Microsoft SQL Server Database File (SqlClient)' and select 'NORTHWND.MDF' from my App_Data folder I get this error: The attempt to attach to the database failed with the following information: A network-related or instance