Questions tagged [.net]
Do NOT use for questions about .NET Core - use [.net-core] instead. The .NET framework is a software framework designed mainly for the Microsoft Windows operating system. It includes an implementation of the Base Class Library, Common Language Runtime (commonly referred to as CLR), Common Type System (commonly referred to as CTS) and Dynamic Language Runtime. It supports many programming languages, including C#, VB.NET, F# and C++/CLI.
80,233
questions with no upvoted or accepted answers
34
votes
4
answers
4k
views
Invalid WS Security Header - IRS ACA SOAP Request
I'm in the process of submitting a RequestSubmissionStatusDetail request from the IRS.
Here's my problem. When submitting the following document to the IRS, I always get "Invalid WS Security Header". ...
31
votes
0
answers
8k
views
How to include native assets in Nuget on multiple platforms, only 64-bit
I'm creating a NuGet package with the following idea:
Has a platform dependent executable and a dll (Windows, Linux and MacOS).
The native binaries are 64-bit ones.
A .NET Standard 2.0 library to use ...
20
votes
0
answers
2k
views
msix and multiple target frameworks not working
I have wpf project with multiple target frameworks
<TargetFrameworks>netcoreapp3.0;net48</TargetFrameworks>
In vs2019 I created Windows Application Packaging Project (MSIX package) and ...
16
votes
0
answers
2k
views
vstest.console.exe execution model and isolation behaviors
I'm trying to determine the considerations that should be made when writing tests that are going to run under vstest.console.exe.
Example 1: Let's say that I have two tests both of which rely on ...
16
votes
0
answers
8k
views
Microsoft replacement of SQL Server CE
Why is SQL Server CE deprecated and what is (or will be) Microsoft replacement for portable database? LocalDB requires local .msi installation, and SQlite requires 3rd-party bindings to ADO.NET. ...
16
votes
1
answer
4k
views
Why can't I find System.Web.pdb on referencesource.microsoft.com?
SYMSRV: http://referencesource.microsoft.com/symbols/System.Web.pdb/E6EBD6B61CEA407591438CC4E48036891/System.Web.pdb not found
http://referencesource.microsoft.com/symbols: Symbols not found on ...
15
votes
2
answers
363
views
Referencing SQLiteCommand class not valid when embedding interop type
I'm distributing System.Data.Sqlite.dll which I integrated into my project using NUGET.
I'm releasing my application as x86.
If I simply distribute System.Data.Sqlite.dll to my application folder, ...
15
votes
2
answers
5k
views
How to open new email with attachment in Windows 10 Mail App
I am trying to add a feature to my C# / .Net app for a user to email a file.
When a user has Outlook installed, I can successfully use the Outlook interop APIs to do exactly what I want.
However on a ...
14
votes
0
answers
9k
views
How to set telemetryConfiguration for Application Insights for Serilog via AppSettings
For my ASP.NET 5 Web Project I want to log to Application Insights via Serilog. Now I finally got everything working, but I cannot belive this is they way to go. I hope you can help me to improve it.
...
14
votes
1
answer
6k
views
Is .NET Core or .NET 5.0 supported by Pythonnet
I've been using Pythonnet for quite some time but always against .NET Framework 4.*
With the recent release of .NET 5.0 I wanted to migrate my projects but I could not make it work for non-Framework ...
14
votes
2
answers
4k
views
Clickonce deployment equivalent for Dotnet core applications
We have a dotnet core console application which we want to use ClickOnce deployment. Mainly every time the user runs the application, it should check for update and update itself.
This was available ...
14
votes
2
answers
2k
views
How to create a Unit Test for an object that depends on DbEntityEntry
I have the following helper method, which takes the validation messages out of the DbEntityValidationException. We need this because the details of validation aren't added to the Exception by default. ...
14
votes
1
answer
2k
views
How do I customize the FileOpen dialog for >= Vista?
I'm looking to customize the Vista-like OpenFileDialog with custom WinForms and WPF controls. I know you can template the XP-like OpenFileDialog but that looks pretty ugly and doesn't satisfy my ...
14
votes
2
answers
2k
views
.NET Core Custom model binder call default model binder
I'm trying to implement some middleware in .NET Core that rounds decimals to 2 decimal places. All of the other mapping can work as it currently does via the ComplexTypeModelBinder. I've tried calling ...
13
votes
1
answer
1k
views
How to mock methods which take or return a Span<T>
We have been using moq which relies heavily on expression trees and reflection.emit. But Span is not allowed to be in an expression tree, so methods which take or return a Span cannot be mocked with ...