16,632 questions with .NET-related tags

Sort by: Updated
2 answers One of the answers was accepted by the question author.

How to prebuild C# generics before runtime

Hi, Currently, C# generics are built at runtime. First time, generics execution is very slow because runtime compilation. How to avoid runtime compilation...how to get target x64 or x86 binaries where generics are already compiled to native binary. …

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,449 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
348 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,466 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,244 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
43,563 questions
asked 2021-01-14T14:45:11.157+00:00
vb 286 Reputation points
commented 2021-02-03T17:40:16.69+00:00
vb 286 Reputation points
2 answers One of the answers was accepted by the question author.

Skiasharp - Detected Selected Touch Point

Hi In this example there are four touch points TouchPoints[0], touchPoints1, touchPoints[2] and touchPoints[3] …

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,380 questions
asked 2021-01-31T12:59:31.557+00:00
Yusuf 791 Reputation points
commented 2021-02-03T16:19:55.137+00:00
Yusuf 791 Reputation points
2 answers One of the answers was accepted by the question author.

ZIndex Changes Unexpectedly

I have a DataTemplate containing several basic elements (a Grid containing Label(s) and Button(s)). Some of the Label(s) are on top of the Button(s) (they have the same Grid.Column & Grid.Row). However, at certain points when I click the Button the…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,380 questions
asked 2021-02-02T20:25:22.417+00:00
Nathan Sokalski 4,111 Reputation points
accepted 2021-02-03T16:07:52.467+00:00
Nathan Sokalski 4,111 Reputation points
1 answer One of the answers was accepted by the question author.

CollectionView: change selected Label textcolor

CollectionView Selected Item Highlight Colour In this example is it possible to change the Grid background color when the items is selected. I would like to change the grid background color AND the Label TextColor Is it possibile with…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,380 questions
asked 2021-02-03T10:48:42.733+00:00
Alessandro Caliaro 4,196 Reputation points
accepted 2021-02-03T14:18:20.987+00:00
Alessandro Caliaro 4,196 Reputation points
1 answer One of the answers was accepted by the question author.

How can I use IDisposable in a class derived from a class that's implementing IDisposable already?

I'm trying to understand how Finalizers and IDisposable are supposed relate to each other in a class hierarchy. Given I have a class that's deriving from a base class, both classes have unmanaged resources. How would I implement Finalizers and…

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,466 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,244 questions
asked 2021-02-03T00:15:00.963+00:00
AxD 671 Reputation points
commented 2021-02-03T12:57:15.63+00:00
AxD 671 Reputation points
1 answer One of the answers was accepted by the question author.

Crashes on Testflight launch

Xamarin project on windows visual studio. Trying to use testflight and eventually apple store. The crash occurred on my 8th Gen Ipad The app crashes upon launch on testflight. No pages just immediately crashes and generates log. I assume this is a…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,380 questions
asked 2021-02-03T11:00:57.9+00:00
Devon Daigneault 101 Reputation points
accepted 2021-02-03T12:48:38.84+00:00
Devon Daigneault 101 Reputation points
0 answers

What should be binding in WCF Client for calling SOAP web service with OAuth Authentication

Hello, I am having WCF client which consumes SOAP based web service which has OAuth authentication. My WCF service gets consumed by some other service but my issue is about authentication when it consumes web service. My WCF client, consumes web…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
asked 2021-02-03T00:11:41.347+00:00
Patel, Manoj (IST) 1 Reputation point
commented 2021-02-03T10:12:45.603+00:00
Patel, Manoj (IST) 1 Reputation point
1 answer

Use variable from Library in Azure DevOps for DOCKERFILE

I have a pipeline on Azure DevOps and this is the YAML file. trigger: - main resources: - repo: self variables: # Container registry service connection established during pipeline creation dockerRegistryServiceConnection: 'xxx' imageRepository:…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
asked 2021-02-03T09:21:31.017+00:00
Enrico Rossini 201 Reputation points
answered 2021-02-03T09:35:23.347+00:00
Vaibhav Chaudhari 38,911 Reputation points Moderator
2 answers

ListView cannot display text ,ItemsSource from another class.

i make 3 class --values from following class public class SearchList { public string Code { get; set; } public string Unit { get; set; } public override string ToString() { return Code; } …

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,380 questions
asked 2021-01-11T12:35:50.767+00:00
Jason Tho 1 Reputation point
commented 2021-02-03T09:17:17.317+00:00
Alessandro Caliaro 4,196 Reputation points
0 answers

Alert Dialogs Show in White Text and White Background Color in Light Mode Xamarin.Forms Android

Hello Everyone :) i have issue in My Xamarin.Forms Android App When i Change My Phone to Dark Mode the Dialogs its showing perfect but when i use Light Mode The Dialogs will show as white text also buttons and background color so how to fix this also i…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,380 questions
asked 2021-01-31T20:28:53.233+00:00
SimonGhost 256 Reputation points
commented 2021-02-03T08:07:36.39+00:00
JessieZhang-MSFT 7,716 Reputation points Microsoft External Staff
0 answers

Problem with logging in and rebuilding in Xamarin (Connect to Internet to proceed)

Hi everyone. Today I tried to build my app and sadly I was not able to log in into my Xamarin account because of this problem: I checked my internet connection and It was fine. As you can see I have turned off firewall so I think the problem is…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,380 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,449 questions
asked 2021-02-02T13:07:54.237+00:00
Mehdi R 1 Reputation point
commented 2021-02-03T05:39:32.25+00:00
Anonymous
0 answers

The result of a query cannot be enumerated more than once. even I user ToList.

I get following error on EF6 when trying to go over list for different output. I have read that we have to use ToList to solve this. But in my case, even if I user new variable at each stage, I am getting same error. below is sample code for the same …

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
asked 2021-01-29T05:21:12.493+00:00
Gaurang Thakkar 1 Reputation point
commented 2021-02-03T04:09:49.98+00:00
Gaurang Thakkar 1 Reputation point
1 answer

X.PagedList.Mvc.Core -Version 7.6.0

X.PageList.Mvc.Core is not installing and giving error as Install-Package : Could not install package 'X.PagedList.Mvc.Core 7.6.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5', but the package does…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
asked 2021-02-02T09:18:58.867+00:00
Azhagiri R 1 Reputation point
answered 2021-02-03T03:24:25.55+00:00
Tianyu Sun-MSFT 34,336 Reputation points Microsoft External Staff
1 answer

How to play audio/video in WebView from MemoryStream on Android?

Hi, I'm building a Xamarin.Forms app and want to play video and audio files from MemoryStream in a WebView (background: all content will actually be stored encrypted on the device in FileSystem.CacheDirectory). On UWP this works fine using an…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,380 questions
asked 2021-01-11T10:14:54.2+00:00
scb 1 Reputation point
commented 2021-02-02T19:38:25.25+00:00
scb 1 Reputation point
1 answer One of the answers was accepted by the question author.

Where does it put my text file in on android?

Here's my MainPage.xaml: <ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:VM="clr-namespace:Emon" …

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,380 questions
asked 2021-02-02T15:19:11.417+00:00
Emon Haque 3,176 Reputation points
commented 2021-02-02T17:04:24.417+00:00
Alessandro Caliaro 4,196 Reputation points
1 answer

.net tableadapter.update does not return all rows from db.

Using tableadapter on multiuser system Example: user1 adapter.fill - fills table user 2 adds new row to table - adapter.update user1 changes a row in table - adapter.update user1 does not see the row, user2 has added What to do ? mvh ravnø

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
asked 2021-02-01T18:23:37.297+00:00
Finn Ravnø 1 Reputation point
answered 2021-02-02T16:07:10.38+00:00
Karen Payne MVP 35,571 Reputation points Moderator
0 answers

How do I resolve this Xamarin iOS Build Error in Visual Studio 2015, "Xamarin.Messaging.Exceptions.ClientDisconnectedException"?

After moving to a new Windows laptop, I am no longer able to build Xamarin iOS projects in Visual Studio 2015. With the same MacBook, I was able to build Xamarin iOS projects in Visual Studio 2015 on my old Windows laptop. Due to customer requirements,…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,380 questions
asked 2021-02-02T15:03:51.593+00:00
Henry5110 1 Reputation point
6 answers

SQlite Xamarin forms Visual Studio 2019 Local Database

Hiiiiiiiiiii I designed an app that I published in the google play store The app uses aLocal database (SQlite) to enable the user to register once and use the app for a limited period of 1 year only. But... the problem is that when a user…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,380 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,494 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,466 questions
asked 2021-01-19T14:15:51.853+00:00
Majid Sarrouh 1 Reputation point
commented 2021-02-02T14:01:07.023+00:00
JarvanZhang 23,971 Reputation points
2 answers One of the answers was accepted by the question author.

Enable NFC programmatically on Android device

Hi, I'm trying to work with the NFC device and I got to the step where I have to enable the NFC programmatically. I've made a lot of research but I couldn't find anything that works. For example, if you want to enable the Bluetooth device on android…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,380 questions
asked 2021-02-01T08:04:51.623+00:00
Balauroiu Radu 41 Reputation points
accepted 2021-02-02T12:16:46.317+00:00
Balauroiu Radu 41 Reputation points
1 answer One of the answers was accepted by the question author.

Commands' canExecute isn't evaluated

In my MainPage.xaml I've these: <ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:VM="clr-namespace:Emon" …

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,380 questions
asked 2021-02-02T07:54:37.06+00:00
Emon Haque 3,176 Reputation points
accepted 2021-02-02T11:54:41.21+00:00
Emon Haque 3,176 Reputation points