How to generate XML documentation for CSPROJ with multiple targets
I have a library project that has multiple targets, e.g. in the CSPROJ file it has: ``` <TargetFrameworks>net40;net46;net461;net462;net47</TargetFrameworks> ``` If I want XML documentation for all ...
- Modified
- 4 Nov at 21:36
How to remove an unpushed outgoing commit in Visual Studio?
I accidentally pushed a staged change in a new branch in Visual Studio 2017 to my local repository. It hasn't been pushed to the remote repository. I want to get rid of it but can't find a way to do t...
- Modified
- 4 Nov at 18:29
How Do I Call XML SOAP Service that Requires Signature from .Net Core?
I realize that this question refers to old technology. I am calling a vendor system and have no ability to change the service. We are required to call an XML/SOAP WS and then sign the request. 10 y...
- Modified
- 3 Nov at 21:46
Profile a .net core application on mac?
I can launch an application like: ``` dotnet myapp.dll ``` But how can I perform time or memory profiling on it? In visual studio for Mac community edition, no "profile" option shows up under the ...
- Modified
- 3 Nov at 22:30
How to delegate Windows Authentication session when running an app on IIS 8?
I have an intranet application written with c# on the top of ASP.Net MVC 5 Framework. My app is configured to authenticate users via "Windows Authentication" method. This app is running on IIS 8. My...
- Modified
- 6 Nov at 18:45
ServiceStack API documentation in Swagger-UI behind the closed doors
I want to allow access to swagger-ui and metadata only if user is authenticated (forms auth) on our web app, but I want to allow API access all the time (API have some public methods and some which re...
- Modified
- 13 Aug at 17:15
Optional constructor injection arguments with .NET Core
In some IoC containers it is possible to have arguments in the constructor that can't be fulfilled by the container. Is this possible with the `Microsoft.Extensions.DependencyInjection` libraries and ...
- Modified
- 3 Nov at 13:0
URL to access private blob in Azure Storage
We're just getting started with Azure Storage. In our scenario we upload to private blobs that we later need to access directly from our client app, e.g. images. Is there a way to address private blo...
- Modified
- 3 Nov at 08:0
Use inner join if record exists otherwise use left join
I have the following table structure: dbo.Owner ``` OwnerID OwnerName 1 John 2 Marie 3 Alex ``` and dbo.Pet ``` PetID PetTag Status OwnerID 1 A341 Active ...
- Modified
- 3 Nov at 06:0
C# ServiceStack Attribute and Swagger UI - List of complex objects
What would be the proper way of using annotation in C# for Swagger-UI in order to have a definition of complex objects listed. For example, if we have something like this: ``` [ApiMember(Name = "Foo...
- Modified
- 4 Nov at 23:16
ASP.NET Core running two TestServer for Integration Testing
I am trying to run some integration tests for a token management API. The API also requires the token issuer API to be running. In summary, my integration test needs to run both IdentityServer4 Web/...
- Modified
- 2 Nov at 18:5
ServiceStack AuthProvider PreAuthenticate infinite loop
I'm attempting to write a simple custom AuthProvider for authentication by API key on the URL. I have based my code on the [BasicAuthProvider](https://github.com/ServiceStack/ServiceStack/blob/v4.0.4...
- Modified
- 2 Nov at 16:54
How to determine which ServiceStack AuthProvider gets used
I have written a CustomApiKeyAuthProvider that allows the use of an API key passed in the URL query string as: > GET [https://example.com/resource/42?apikey=abc123etc](https://example.com/resource/4...
- Modified
- 2 Nov at 11:15
System.Drawing Out of Memory Exception On Main() Method - C#
My program is a CRM, I used Rad Ribbon Bar, so Many Buttons with images, RadGridView (which some columns contain images) and so many other controls which contain images. It's a mdi parent/child progra...
.NET Core error on build: error MSB4062 Microsoft.Build.Tasks.ResolveComReference
I'm working on a .net core web app (targeting net461). The app needs to reference a COM dll. I added the COM reference and the app still builds on my dev machine. However, on the build server it fai...
- Modified
- 17 Nov at 11:34
Could not get the reflection type for DbContext
When scaffolding a controller in ASP Core 2.0 VS 2017 I get the following: > Could not get the reflection type for DbContext :BE.Data.ApplicationDbContext at Microsoft.VisualStudio.Web.CodeGenerati...
- Modified
- 20 Jun at 09:12
CsvHelper: No members are mapped for type
I use [CsvHelper 4.0.3](https://www.nuget.org/packages/CsvHelper/). I have a class defined like this: ``` private class CsvLine { public string Solution; public string Project; public s...
Ignore properties in data model while keeping them in EF Core migrations
I am creating a greenfield application that uses EF Core which must talk to a legacy database. I want EF to ignore some of the columns in the database because they will eventually be deprecated and I ...
- Modified
- 6 Apr at 19:51
What is the alternative of Httpcontext.Current.Request.Files in Asp.Net Core 2.0?
I referred [this](https://stackoverflow.com/questions/31243068/access-httpcontext-current), which suggests that I can use `IHttpContextAccessor` to access `HttpContext.Current`. But I want to specific...
- Modified
- 1 Feb at 14:45
CQRS and Event Sourcing Difference
What is the difference between CQRS (Command Query Responsibility Segregation) and Event Sourcing? I believe Event Sourcing is a type of CQRS. What distinguishes each, and what makes Event Sourcing d...
- Modified
- 19 Jul at 12:13
Entity Framework Core: Is it safe to delete Migration.Designer.cs if we will never Revert a migration?
We have a database schema with ~200 tables. Model snapshot (Migration.Designer.cs) which is created for each migration is ~20K lines. So, having quite a number of migrations really slows down our buil...
- Modified
- 1 Nov at 05:24
False C# compiler warning?
Ok, this is a far stretched corner case we stumbled upon, but it made me curious. Consider the following code: ``` public class Foo { private int foo; public int Reset() => foo = 0; //rememb...
- Modified
- 1 Nov at 00:29
How to animate line renderer shapes without leaving a gap
I am using the code below to create shapes with a line renderer based on the number of points. For points greater than 3 (triangle shape and so on) the first and last points don't close the shape in t...
ServiceStack ormLite chaning OrderBy
I am trying to so the following: ``` var routines = con.Select<Table>(con.From<Table>().OrderBy(p => p.Field1).ThenBy(i => i.Field2)); ``` The above works perfectly. But I want a rather more generi...
- Modified
- 31 Oct at 19:34
Why can't Visual Studio find this nuget package's .props file?
Due to some git project changes, when I try to build, I get an error: > This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For mor...
- Modified
- 5 Jan at 17:5