visual-studio-2012

Build “*.DTPROJ” - SSIS on the build server with devenv.exe (Visual Studio 2012)

荒凉一梦 提交于 2021-02-07 08:16:24
问题 I'm trying to build a SSIS project (*.dtproj) with Visual Studio 2012 on the build server. As far as I know there's no support to build this kind of project directly using MSBuild. However my thinking is that if I can build it using the Visual Studio 2012 IDE locally, I would be able to build it using the Visual Studio command line (calling devenv.exe/devenv.com) directly from a command line on the build server But I have tried so many combinations and I have not been able to find anything

Crystal Reports for VS2012 – free or not?

冷暖自知 提交于 2021-02-07 07:18:22
问题 Since Visual Studio 2010 Crystal Reports are no longer part of Visual Studio. I'm using Visual Studio 2012 Professional and despite checking various sources I cannot reliably determine whether I can freely download and use Crystal Reports Developer version for development of commercial applications in Visual Studio 2012 freely distribute and install Crystal Reports Runtime for running apps (developed above) at clients In other words, do I need to purchase a license or not? Do clients need

How to AutoFit excel column using OpenXML Package

柔情痞子 提交于 2021-02-07 06:32:28
问题 This code to generate Excel spreadsheet Using openxml package. Please anyone tell how to auto fit its column width. OpenXmlPackage.SpreadsheetDocument spreadsheetDocument = OpenXmlPackage.SpreadsheetDocument.Create(downloadFilePath, OpenXml.SpreadsheetDocumentType.Workbook); // Add a WorkbookPart to the document. OpenXmlPackage.WorkbookPart workbookpart = spreadsheetDocument.AddWorkbookPart(); // Add a WorksheetPart to the WorkbookPart. workbookpart.Workbook = new OpenXmlSpreadsheet.Workbook(

Visual Studio 2012-s custom project template not visible

偶尔善良 提交于 2021-02-07 05:53:08
问题 I completed the custom template project tutorial part I from msdn and got a basic project structure working and visible in the File - New - Project menu. Then i advanced to msdn part II and can't get past " Testing a Visual Studio Template " part. When i add the .vstemplate file in the custom project template folder, set the Build Action of all the files under my custom project template folder to ZipProject and change the 2nd and 6th parameter of the [ProvideProjectFactory] to null and ".\

Add Portable Class Library (in DLL form) to Xamarin Studio

荒凉一梦 提交于 2021-02-07 05:43:15
问题 I have built a Portable Class Library with Visual Studio 2012 that will also build in Xamarin Studio. I would like to add the DLL built from that PCL (from the bin directory of the solution) to an existing (Android app) project in Xamarin Studio 5.3. I notice that according to documentation from Xamarin, this is generally possible. For example, from this page: The output from a PCL (ie. the resulting assembly DLL) can also be added as a reference to most projects. This makes PCL an ideal way

Dim/hide logging lines of code in Visual Studio

我们两清 提交于 2021-02-06 15:59:15
问题 Is there any way to make visual studio dim or hide/show on demand logging lines of my code? We use a lot of logging in our project and it's harder to read code like this. I would like it to be like this, for example: 回答1: I use this. Hoping one day they will add color customization and line selection regex options as well: https://marketplace.visualstudio.com/items?itemName=ElmarXCV.GrayLogLines 回答2: Unobtrusive Code extension worked for me for Visual Studio 2019. It dims the opacity of log

Saving images to database with asp.net mvc 4 + Entity Framework

偶尔善良 提交于 2021-02-06 13:22:49
问题 I have this: Model: public string Picture { get; set; } [Column(TypeName = "image")] public byte[] Image { get; set; } [Display(Name = "Display profile Image")] public bool DisplayItem { get; set; } View: <div class="editor-label"> @Html.LabelFor(model => model.DisplayItem) </div> <div class="editor-field"> @Html.EditorFor(model => model.DisplayItem) @Html.ValidationMessageFor(model => model.DisplayItem) </div> <div class="editor-label"> @Html.LabelFor(m => m.Image) </div> <input type="file"

Ignore async without await compilation warning

爱⌒轻易说出口 提交于 2021-02-06 12:46:27
问题 I have a base controller with the following abstract method: [HttpDelete] public abstract Task<IHttpActionResult> Delete(int id); In one particular controller, I don't want to implement deletion, so the method looks like this: public override async Task<IHttpActionResult> Delete(int id) { return ResponseMessage(Request.CreateResponse(HttpStatusCode.MethodNotAllowed, new NotSupportedException())); } Although the above code compiles, I get a warning: This async method lacks 'await' operators

Visual Studio debugging painfully slow when loading symbols

泪湿孤枕 提交于 2021-02-05 20:44:32
问题 I have an issue which is practically similar to Visual Studio debugging/loading very slow but I haven't managed to find a solution to such a problem. I have tried all what is described within that question and still, the symbol loading for the very first time is drastically slow. Similarly to the other question, when starting an MVC project, I get several lines within the Output panel which consist of something similar to: 'iisexpress.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft

Visual Studio debugging painfully slow when loading symbols

走远了吗. 提交于 2021-02-05 20:43:43
问题 I have an issue which is practically similar to Visual Studio debugging/loading very slow but I haven't managed to find a solution to such a problem. I have tried all what is described within that question and still, the symbol loading for the very first time is drastically slow. Similarly to the other question, when starting an MVC project, I get several lines within the Output panel which consist of something similar to: 'iisexpress.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft