Questions tagged [.net-4.8]

For questions specific to the usage and features of version 4.8 of Microsoft's .Net framework.

999 questions
0
votes
1 answer

How to migrate existing Asp.net application to WebApi

Hello Stackers, I have an Asp.net Mvc and i wanna migrate the index page from it to an Web Api i wanna know if there is any pattern or approach to follow for making it more easy. i google it but i didn't found a useful answer. Any answer will be…
Abdessamad Jadid
  • 381
  • 1
  • 4
  • 16
0
votes
0 answers

How to set Location of dll in builded net app?

Hello people im asking about setting .Net builded app dll location path I wanted to make my application files look better and you don't need to see dlls with .exe file and if you drag dll from folder to folder it will no work. im using .Net 4.8. Im…
0
votes
3 answers

Remove all lines (comments) starting with "**" by using Regex (.NET Framework, C#)

I am developing an application that reads and works with text files. These text files have the following structure: ** A comment * A command Data, data, data ** Some other comment * Another command 1, 2, 3 4, 5, 6 I store the whole text file in…
Carlos
  • 586
  • 1
  • 9
  • 19
0
votes
2 answers

RichTextBox Text alignment issue with .NET4.8

When compared the text alignment with RichTextBox, behavior has changed from .Net4.6.1 to .Net4.8. Any help on how the earlier behavior of .Net 4.6.1 can be achieved in .Net4.8? public Form1() { InitializeComponent(); …
0
votes
1 answer

EF 6 Unit of work Repository : An entity object cannot be referenced by multiple instances of IEntityChangeTracker

I am using the Unit Of Work Repository Pattern, using Unity Dependacy Inhejection to inject the DataContext in the Repo's I keep getting An entity object cannot be referenced by multiple instances of IEntityChangeTracker. when I use other repo's to…
China Syndrome
  • 953
  • 12
  • 24
0
votes
1 answer

How to package a .NET Standard project into nuget and then automatically resolves its dependencies when installed?

I have a .NET Standard class library project that's being packaged into a nuget package. It has a dependency on Newtonsoft.Json. I built the nuget package by checking the "Generate nuget package on build" on the project properties, under the package…
Lance
  • 2,774
  • 4
  • 37
  • 57
0
votes
0 answers

Sending survey via teams channel in Bot Framework after Push notifications

I am working on a Bot Project.So, we have enabled push notification. So, we now also want to add Survey along with the Push notification message. Please let me know, the possible ways.
0
votes
0 answers

How to fix this ".NetFramework" warning in windows application C#

I have using Visual Studio 2012 with .NetFW 4.8 when I try to start my project I get this warning Warning 2 The primary reference "Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", which is a framework…
0
votes
0 answers

im trying to make my form transparent only in a circle around the area of my mouse everywhere else would be a different color using C#

I'm trying to make something similar to Osu's flashlight mode, but on your desktop using Windows Form App. I don't know of any ways of making one specific part of the form transparent. I've tried making a second form that is transparent and putting…
MaxieDev
  • 1
  • 3
0
votes
0 answers

HttpClient fails to connect to server in .Net Framework, succeeds in .Net Core; what's causing the failure?

Edit: Popped back in because I haven't fixed the problem and it's really starting to do my head in. After multiple reinstallations of .Net Framework libraries and Visual Studio 2019, I opted for a complete laptop reimage, none of which made a…
0
votes
0 answers

C#: try foreach catch continue

I am iterating an IEnumerable from EnumerateFileSystemEntries where the act of getting the next element could throw an access denied exception. So I wrap it in a try but I don't want to stop iterating just because one element in the middle is bad.…
HackSlash
  • 4,944
  • 2
  • 18
  • 44
0
votes
3 answers

Editing content of textbox from a class

I'm fairly new to programming with C#, I'm trying to change the value of a textbox in my main Form called "ClientWindow", the textbox is called ClientConsoleTextBox. I tried doing this: public static string ClientConsoleText; and then when the…
Antwns
  • 29
  • 7
0
votes
0 answers

Find stream positions of JSON fragments

I am trying to find stream start and stop positions of JSON fragments. At the moment I am using JsonTextReader which allows me to use the JsonTextReader.Path property which can be checked using a regex for matching. It does have LinePosition and…
Bent Rasmussen
  • 5,538
  • 9
  • 44
  • 63
0
votes
1 answer

Why is solution 1 to close my application slower than solution 2?

This code takes about 2.5 seconds to close my application: Environment.Exit(0); However, the following solution takes less than half a second: Application.Current.Shutdown(); How does this big difference in time come about?
Jonas _
  • 69
  • 1
  • 6
0
votes
1 answer

VB.NET application compiled to target 4.6.1 framework does't run successfully on Computer with only 4.8 .Net framewor

I intend to build simple Winform application just to allow user to automate their file creation and store the last filled form in a file to keep it for next run. thus, I'm not interested in creating installer for this simple Winform application. I…