How to run asp.net core app automatically after changes in c# files
I am running `ASP.NET Core` application on `Visual Studio Code` on a mac. To run the app, I use `dotnet run` from the terminal. Whenever I make changes in one of the `C#` files, I have to stop and r...
- Modified
- 7 Nov at 16:25
Is it possible to create a cross-database query with ServiceStack ORMLite?
Pretty much summed up in the title. Trying to hit a table in one database and join it to a table in another database on the same server. I would have assumed an attribute for `Database` that I could...
- Modified
- 7 Nov at 14:2
Significant drop in performance of Math.Round on x64 platform
I've noticed a very significant (~15x) drop in performance when using Math.Round to convert double to int while targeting x64 compared to x86. I tested it on 64 bit Windows on Core i7 3770K. Can anyon...
- Modified
- 23 Nov at 10:20
Calling sqlite function via ServiceStack.ORMLite
I'm using ServiceStack.ORMLite and SQLite as database. I've created a generic repository: ``` public class Repository<T> : IRepository<T> where T : class, new() { private ReestrContext db; p...
- Modified
- 6 Nov at 21:46
Visual Studio Code: How to show Overloads in IntelliSense?
I am working with the new asp.net core 1.0 framework on Visual Studio Code. My question is, how do I traverse through all the overloads a method might have? [](https://i.stack.imgur.com/DdFF9.png) ...
- Modified
- 6 Nov at 19:31
Non-blocking loading and copying of large Texture2D's in C# for Unity
I'm building a Unity app for Android which deals with loading a lot of large textures dynamically (all images are over 6MB in size as png's). These textures can either come from an Amazon S3 server, i...
- Modified
- 25 Nov at 00:44
How to modify file access control in .NET Core
I'm trying to change the permissions of a file in .NET Core. However, it seems that [FileInfo](https://msdn.microsoft.com/en-us/library/system.io.fileinfo.setaccesscontrol(v=vs.110).aspx) doesn't have...
- Modified
- 7 Nov at 05:22
I get a 400 bad request - invalid Url when the length of the request exceeds 320+ characters
Not sure what could be the reason. Added the following in Web.config also. maxUrlLength="1024" maxQueryStringLength="1024" requestPathInvalidCharacters="" maxRequestLength="1024" relaxedUrlToFileSyste...
- Modified
- 6 Nov at 11:4
Set CultureInfo in Asp.net Core to have a . as CurrencyDecimalSeparator instead of ,
I'm going mad. I just want the culture used in the entire Asp.net core application to be set to "en-US". But nothing seems to work. Where to I set the culture for the entire application? I'm not inter...
- Modified
- 11 Jan at 15:17
MultiTenancy with DbContext and TenantId - Interceptors, Filters, EF Code-First
My organization needs to have a shared database, shared schema multitenant database. We will be querying based on TenantId. We will have very few tenants (less than 10) and all will share the same d...
- Modified
- 6 Nov at 19:14
Custom Deserialization using Json.NET
I have a class ``` public class Order { public int Id { get; set; } public string ShippingMethod { get; set; } } ``` and I want to deserialize a JSON data below into the above class/object `...
- Modified
- 5 Nov at 15:3
How to render a Razor template inside a custom TagHelper in ASP.NET Core?
I am creating a custom HTML Tag Helper: ``` public class CustomTagHelper : TagHelper { [HtmlAttributeName("asp-for")] public ModelExpression DataModel { get; set; } publi...
- Modified
- 5 Nov at 12:6
Is there any way to invoke PowerQuery/M outside of Excel or PowerBI?
Our BI team is really growing to like the [Power Query ETL tool](https://support.office.com/en-us/article/Introduction-to-Microsoft-Power-Query-for-Excel-6E92E2F4-2079-4E1F-BAD5-89F6269CD605?ui=en-US&...
- Modified
- 4 Nov at 22:43
Convert HTML to PDF using HtmlRenderer
I am looking to use HtmlRenderer to convert an HTML file to a PDF file. I have seen it being mentioned on several sites that it is possible. However, I don't seem to be able to find any basic sample c...
- Modified
- 14 Mar at 08:56
MD5CryptoServiceProvider in ASP.NET Core
I have a database with passwords created in the old Identity system. Passwords were hashed using the `MD5CryptoServiceProvider` class. I now need to use these passwords in ASP.NET MVC Core but `MD5Cry...
- Modified
- 4 Nov at 21:4
Why is this custom backstage UI for Word not displaying its user interface?
I have an Office addin which uses the following backstage XML to add custom UI elements into Microsoft Word backstage: ``` <?xml version="1.0" encoding="UTF-8"?> <customUI xmlns="http://schemas.micro...
- Modified
- 8 Nov at 21:8
How do I hide routes I don't control from ServiceStack's SwaggerFeature?
In my example, I'm using the `ApiKeyAuthProvider` and `RegistrationFeature,` which both add new routes to my metadata. I want to use swagger as our main documentation for these services, but I don't ...
- Modified
- 4 Nov at 18:32
IP Security in Asp.Net Core
I am trying to restrict a site by IP address. In previous MVC versions I'd add something like the following to the web.config: ``` <security> <ipSecurity allowUnlisted="false" denyAction="NotFound"...
- Modified
- 4 Nov at 16:23
How to get the value of cell containing a date and keep the original formatting using NPOI
I have an Excel file that I edited using DevExpress and I am reading using NPOI. When I try to get the value of a date cell as string, it does not keep the original value. For example: In a DevExpres...
- Modified
- 12 Nov at 00:23
Nuget: What is the purpose of the <package requireReinstallation /> attribute in packages.config?
I upgraded my C# project (which already had some nuget packages) from 4.0 to 4.5.2. I saw that some `<package />` elements now contain an additional attribute `requireReinstallation="true"`. - What is...
XML serialization force full closing tag on null or empty value
I have class ``` public class Testowa { public string test { get; set; } } ``` When I serialize it without value for test, I get ``` <test/> ``` But I want get ``` <test></test> ``` How ...
- Modified
- 2 May at 08:48
'Newtonsoft' could not be found
I pasted the code from [http://www.codeproject.com/Tips/789481/Bridging-the-Gap-between-Linqpad-and-Visual-Studio](http://www.codeproject.com/Tips/789481/Bridging-the-Gap-between-Linqpad-and-Visual-St...
- Modified
- 8 Dec at 16:58
Xamarin Forms IsVisible false taking up space
I have a list view with a template switcher, and a on a particular item I want it to be hidden so I've used a hidden template. I set the view (or the StackLayout) to be isVisible=false and the HeightR...
- Modified
- 4 Nov at 06:16
C# Dictionary get item by index
I am trying to make a method that returns a name of a card from my Dictionary randomly. My Dictionary: First defined name of the card which is string and second is the value of that card, which is int...
- Modified
- 3 Jan at 19:56
How can I bind output values to my async Azure Function?
How can I bind my outputs to an async function? The usual method of setting the parameter to `out` doesn't work with async functions. ### Example ``` using System; public static async void Run(st...
- Modified
- 20 Jun at 09:12