Visual Studio 2022

Discussion of chess software programming and technical issues.

Moderator: Ras

Henk
Posts: 7251
Joined: Mon May 27, 2013 10:31 am

Visual Studio 2022

Post by Henk »

I went from visual 2019 to 2022. But what a difference. Background color black with all kinds of distracting colors. (types, variables, etc) Don't know how long it takes to getting used to that. If ever.
User avatar
lithander
Posts: 915
Joined: Sun Dec 27, 2020 2:40 am
Location: Bremen, Germany
Full name: Thomas Jahn

Re: Visual Studio 2022

Post by lithander »

Just disable dark mode. Assuming you have a german language install the option is found here:
"Extras->Optionen->Umgebung->Visuelle Darstellung->Farbschema"
Minimal Chess (simple, open source, C#) - Youtube & Github
Leorik (competitive, in active development, C#) - Github & Lichess
Henk
Posts: 7251
Joined: Mon May 27, 2013 10:31 am

Re: Visual Studio 2022

Post by Henk »

Ok found it. I am using Community Version. It is Tools->Theme etc.
Chessnut1071
Posts: 313
Joined: Tue Aug 03, 2021 2:41 pm
Full name: Bill Beame

Re: Visual Studio 2022

Post by Chessnut1071 »

Henk wrote: Thu May 19, 2022 11:48 am I went from visual 2019 to 2022. But what a difference. Background color black with all kinds of distracting colors. (types, variables, etc) Don't know how long it takes to getting used to that. If ever.
"... Background color black with all kinds of distracting colors. "
welcome to the club. you eventually get used to it. Wait till you do an edit search and everything is camouflaged. Also, it's not any faster; however, you need the updates.

You will need the intrinsics below if you came from another language.

using System.Runtime.Intrinsics.X86;

Bmi1.X64.TrailingZeroCount(value)
Lzcnt.X64.LeadingZeroCount(value)
Bmi2.X64.ParallelBitExtract(blocker_board, rookMask[sqr])
Henk
Posts: 7251
Joined: Mon May 27, 2013 10:31 am

Re: Visual Studio 2022

Post by Henk »

Which nuget package contains System.Runtime.Intrinsics.X86 ?
I doubt if it works. So it should be easy to de-install.
Chessnut1071
Posts: 313
Joined: Tue Aug 03, 2021 2:41 pm
Full name: Bill Beame

Re: Visual Studio 2022

Post by Chessnut1071 »

Henk wrote: Thu May 19, 2022 5:14 pm Which nuget package contains System.Runtime.Intrinsics.X86 ?
I doubt if it works. So it should be easy to de-install.
System.Runtime.Intrinsics.X86 is an assembly for Net 7.0, wpf. It works fine on my Win 10.
Henk
Posts: 7251
Joined: Mon May 27, 2013 10:31 am

Re: Visual Studio 2022

Post by Henk »

I can't create a class library using net7.0 for the visual studio community version I am using does not have that option. Only net6.0 possible.
Henk
Posts: 7251
Joined: Mon May 27, 2013 10:31 am

Re: Visual Studio 2022

Post by Henk »

Hi hi hi. When I set <Nullable>enable</Nullable> in project file I get hundreds of warnings. I don't think I have the patience to correct them all.

Enable here means something like that references are not allowed to be null unless you make them nullable explicitly by adding a '?' operator.
O wait record is a reference too.

Looks like I first have to learn C#
Last edited by Henk on Fri May 20, 2022 12:22 pm, edited 1 time in total.
dangi12012
Posts: 1062
Joined: Tue Apr 28, 2020 10:03 pm
Full name: Daniel Infuehr

Re: Visual Studio 2022

Post by dangi12012 »

VS 2022 is the best VS yet.

The intellisense in C# has gotten to an insane level. It correctly predicts most code that I want to write etc..

In C++ it also got a lot better.
Worlds-fastest-Bitboard-Chess-Movegenerator
Daniel Inführ - Software Developer
Henk
Posts: 7251
Joined: Mon May 27, 2013 10:31 am

Re: Visual Studio 2022

Post by Henk »

C# code in Blazor webassembly does not even run:

Code: Select all

var bit = ExtractLowestSetBit(bits);
bits = ResetLowestSetBit(bits);
So I had to replace it with the old

Code: Select all

 var bit = bits & (~bits + 1);
 bits &= (bits - 1);
 
to make it work.

So I need a WebApi to run the first code ?
What a world we live.