visual-studio-2010

Files show up in Solution Explorer in Visual Studio with a shortcut icon. What does that mean?

∥☆過路亽.° 提交于 2020-01-02 08:43:30
问题 I've downloaded FParsec's library source code, and all the files appear with the shortcut symbol. What does it mean? 回答1: When the item was added to that project, it was added as a link Project -> Add Existing Item -> Add as Link The file is most likely hosted in another location in the directory structure, and can also be referenced normally by another project. From MSDN: Adding an Existing Item as a Link You can also add an item as a link rather than directly adding the file to your project

How to make an id field in SQL Server?

北战南征 提交于 2020-01-02 08:43:21
问题 I want to make a field, which will be automatically filled, and stay unique. More explanation: I have an ID field, which should be filled by my program not the user, and is my primary key. How may I do it in SQL Server? I'm using Visual Studio 2010 回答1: On your ID column, set "identity" to yes and set the "seed" to 1. Enjoy! 回答2: Use an Identity column. create table MyTable ( ID int identity(1,1) primary key, ... ) 回答3: When creating your table simply set it as an Identity and that will give

Files show up in Solution Explorer in Visual Studio with a shortcut icon. What does that mean?

…衆ロ難τιáo~ 提交于 2020-01-02 08:43:19
问题 I've downloaded FParsec's library source code, and all the files appear with the shortcut symbol. What does it mean? 回答1: When the item was added to that project, it was added as a link Project -> Add Existing Item -> Add as Link The file is most likely hosted in another location in the directory structure, and can also be referenced normally by another project. From MSDN: Adding an Existing Item as a Link You can also add an item as a link rather than directly adding the file to your project

How do i write a static ansi-c library using visual studio 2010

做~自己de王妃 提交于 2020-01-02 08:32:45
问题 When I write and compile a lib file in VS2010 I am missing something. I somehow do not mark them correctly for export. The console command dumpbin.exe -headers mylib.lib > stackoverflow.txt generates the following output. (I removed empty lines) Microsoft (R) COFF/PE Dumper Version 10.00.30319.01 Copyright (C) Microsoft Corporation. All rights reserved. Dump of file mylib.lib File Type: LIBRARY ANON OBJECT HEADER VALUES 1 version 14C machine (x86) 515AC7B8 time date stamp Tue Apr 02 13:57:44

How to fail build if test method fails?

廉价感情. 提交于 2020-01-02 08:12:52
问题 My Reference is this http://msdn.microsoft.com/de-de/library/ms182532.aspx Using Visual Studio. Lets say there is a Solution Project.SuperApp with some projects and one unit test project. If i want to run the tests i first have to build the solution and then run all tests from the Test-Explorer. Even if one test fails the software is already build and ready to deploy. Which seems like an error to me. With other tools like Maven if you want to build/package a software component the tests are

“The application was unable to start correctly (0xc000007b). Click ok to close the application.”

泪湿孤枕 提交于 2020-01-02 08:09:29
问题 I am getting the error message in the title on a VPS running Windows Server 2008 R2 Enterprise SP1 when I try to open Visual Studio 2010. Things were working fine in the beginning even after I installed SQL Server 2012 and VS 2013. In trying to resolve this, I found others who had this issue stating that the 32 bit version of the msvcp100, msvcp100d, msvcr100, msvcr100d, and msvcr100_clr0400 DLLs in the SysWOW64 folder were overwritten somehow with the 64 bit version. So, I downloaded the 32

“The application was unable to start correctly (0xc000007b). Click ok to close the application.”

时光怂恿深爱的人放手 提交于 2020-01-02 08:09:21
问题 I am getting the error message in the title on a VPS running Windows Server 2008 R2 Enterprise SP1 when I try to open Visual Studio 2010. Things were working fine in the beginning even after I installed SQL Server 2012 and VS 2013. In trying to resolve this, I found others who had this issue stating that the 32 bit version of the msvcp100, msvcp100d, msvcr100, msvcr100d, and msvcr100_clr0400 DLLs in the SysWOW64 folder were overwritten somehow with the 64 bit version. So, I downloaded the 32

NHibernate loading symbols from SymbolSource.org

 ̄綄美尐妖づ 提交于 2020-01-02 07:09:21
问题 I would like to be able to debug NHibernate and I have never loaded any symbols from SymbolSource.org before. What url do I need to enter in Visual Studio to get it to load the symbols for NHibernate so that I can debug it properly? I'm running version 3.2.0.4000 of NHibernate. Edit: This is how I have it configured. I see this in the output window. Notice that it loads the symbols for Iesi.Collections but not NHibernate. 'QTAgent32.exe' (Managed (v4.0.30319)): Loaded 'C:\Users\cwerner\TFS

Updating classes used in multiple projects?

萝らか妹 提交于 2020-01-02 06:20:42
问题 I have a few classes that are abstracted in a way that I can use them in multiple projects. I'm always working on these classes, optimizing, adding, etc. So when I optimize something in one of these classes, I then need to copy that new version into every project I remember using it. This isn't a very good way of doing it, but is there a better way? Thanks 回答1: Instead of manually copying the updated classes to every project that uses them, create a Class Library project and reference the

How do I save an Excel file without getting a format warning when opening, using C# and Excel 2010

可紊 提交于 2020-01-02 06:17:33
问题 I'm using Excel 2010. I'm trying so save my excel file, with this code. It does save a .xls file, but when I open the file I get this message: The file you are trying to open, 'tre.xls', is in a different format than specified by the file extension. Verify that the file is not corrupted and is from a thrusted source before opening the file. Do you want to open the file now? If I press yes the file opens. But what do I need to get rid of this format-popup? My code: using System; using System