text:
Cannot install dotnet-sdk-2.1 on Ubuntu 18.04.1

fail to install latest dotnet-sdk on Ubuntu 18.04.1
I just tried to install latest dotnet SDK 2.1 on fresh clean Ubuntu 18.04.1, well, it fails and I didn't find solution yet.
Details
I followed the official tutorial https://www.microsoft.com/net/learn/get-started-with-dotnet-tutorial, under Ubuntu 18.04 section.

Any idea?

I'm getting this error on 18.04.1:
ngadmin@pocvm4:/tmp$ sudo dpkg -i packages-microsoft-prod.deb
[sudo] password for ngadmin:
(Reading database ... 208777 files and directories currently installed.)
Preparing to unpack packages-microsoft-prod.deb ...
Unpacking packages-microsoft-prod (1.0-ubuntu18.04.1) over (1.0-ubuntu18.04.1) ...
Setting up packages-microsoft-prod (1.0-ubuntu18.04.1) ...
ngadmin@pocvm4:/tmp$ sudo apt-get install apt-transport-https
Reading package lists... Done
Building dependency tree
Reading state information... Done
apt-transport-https is already the newest version (1.6.3).
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
ngadmin@pocvm4:/tmp$ sudo apt-get install apt-transport-https
Reading package lists... Done
Building dependency tree
Reading state information... Done
apt-transport-https is already the newest version (1.6.3).
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
ngadmin@pocvm4:/tmp$ sudo apt-get update
Hit:1 http://us.archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit:4 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:5 http://ppa.launchpad.net/nginx/stable/ubuntu bionic InRelease
Reading package lists... Done
ngadmin@pocvm4:/tmp$ sudo apt-get update
Hit:1 http://us.archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit:4 http://ppa.launchpad.net/nginx/stable/ubuntu bionic InRelease
Hit:5 http://security.ubuntu.com/ubuntu bionic-security InRelease
Reading package lists... Done
ngadmin@pocvm4:/tmp$ sudo apt-get install aspnetcore-runtime-2.1
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package aspnetcore-runtime-2.1
E: Couldn't find any package by glob 'aspnetcore-runtime-2.1'
E: Couldn't find any package by regex 'aspnetcore-runtime-2.1'

Have a look at your .list file and ensure it's pointed the right repo.

Have a look at your .list file and ensure it's pointed the right repo.

Hm, everything is definitely on the repo and working. From a quick test ...
leecow@lbc-1804:~$ cat /etc/apt/sources.list.d/microsoft-prod.list
deb [arch=amd64] https://packages.microsoft.com/ubuntu/18.04/prod bionic main

leecow@lbc-1804:~$ sudo apt install dotnet-sdk-2.1
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  aspnetcore-runtime-2.1 dotnet-host dotnet-hostfxr-2.1 dotnet-runtime-2.1 dotnet-runtime-deps-2.1
  liblttng-ust-ctl4 liblttng-ust0 liburcu6
The following NEW packages will be installed:
  aspnetcore-runtime-2.1 dotnet-host dotnet-hostfxr-2.1 dotnet-runtime-2.1 dotnet-runtime-deps-2.1 dotnet-sdk-2.1
  liblttng-ust-ctl4 liblttng-ust0 liburcu6
0 upgraded, 9 newly installed, 0 to remove and 18 not upgraded.
Need to get 128 MB of archives.
After this operation, 375 MB of additional disk space will be used.
Do you want to continue? [Y/n] y

@mateti - your apt-get update output is suspicious as package.microsoft.com is not listed among the hits.
@JerryBian - do you have any preview versions installed? There was an issue with previous packages getting in the way of dependency resolution. You can check this with apt search dotnet | grep installed

@leecow thanks for you reply, but it seems something is still wrong.
jerry@ubuntu-server-0:~$ apt search dotnet | grep installed

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

jerry@ubuntu-server-0:~$ cat /etc/apt/sources.list.d/microsoft-prod.list
deb [arch=amd64] https://packages.microsoft.com/ubuntu/18.04/prod bionic main
jerry@ubuntu-server-0:~$ sudo apt install dotnet-sdk-2.1
[sudo] password for jerry:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 dotnet-sdk-2.1 : Depends: dotnet-runtime-2.1 (>= 2.1.2) but it is not going to be installed
                  Depends: aspnetcore-runtime-2.1 (>= 2.1.2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

It should not has any previous version installed, since I downloaded latest version of Ubuntu from their portal and then followed your tutorial installing dotnet SDK then, nothing else did.
Do you need anything I check for you besides above?

@JerryBian , can you please try installing dotnet-runtime-deps-2.1 and dotnet-runtime-2.1 package separately and share the log here?

@rakeshsinghranchi please see following:
jerry@ubuntu-server-0:~$ sudo apt install dotnet-runtime-deps-2.1
[sudo] password for jerry:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 dotnet-runtime-deps-2.1 : Depends: liblttng-ust0 but it is not installable
E: Unable to correct problems, you have held broken packages.
jerry@ubuntu-server-0:~$ sudo apt install dontnet-runtime-2.1
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package dontnet-runtime-2.1
E: Couldn't find any package by glob 'dontnet-runtime-2.1'
E: Couldn't find any package by regex 'dontnet-runtime-2.1'

This is strange - what happens with apt search liblttng-ust0. My 18.04.1 output is
leecow@lbc-1804:~$ apt search liblttng-ust0
Sorting... Done
Full Text Search... Done
liblttng-ust0/bionic,now 2.10.1-1 amd64 [installed,automatic]
  LTTng 2.0 Userspace Tracer (tracing libraries)

Please share output of the following commands to help further diagnose the issue :
apt-cache policy dotnet-runtime-deps-2.1
apt-cache policy dotnet-runtime-2.1

@leecow
jerry@ubuntu-server-0:~$ apt search liblttng-ust0
Sorting... Done
Full Text Search... Done

@rakeshsinghranchi
jerry@ubuntu-server-0:~$ apt-cache policy dotnet-runtime-deps-2.1
dotnet-runtime-deps-2.1:
  Installed: (none)
  Candidate: 2.1.2-1
  Version table:
     2.1.2-1 500
        500 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 Packages
     2.1.1-1 500
        500 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 Packages
     2.1.0-1 500
        500 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 Packages
jerry@ubuntu-server-0:~$ apt-cache policy dotnet-runtime-2.1
dotnet-runtime-2.1:
  Installed: (none)
  Candidate: 2.1.2-1
  Version table:
     2.1.2-1 500
        500 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 Packages
     2.1.1-1 500
        500 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 Packages
     2.1.0-1 500
        500 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 Packages

P.S. my Ubuntu is server version, instead of desktop(GUI), though I couldn't see what's difference might be.

So the fact that liblttng-us0 is not being presented to you is the problem. Looks like the package is probably in universe amd 64 which I don't see in your apt-get "Get" list. Here's the archive list I have on a pretty clean box with the default ubuntu repos active in /etc/apt/sources.list.
sudo apt-get update
Hit:1 http://us.archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 https://packages.microsoft.com/ubuntu/18.04/prod bionic InRelease
Get:3 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:4 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages [247 kB]
Get:7 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [268 kB]
Get:8 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 DEP-11 Metadata [138 kB]
Get:9 http://us.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 48x48 Icons [31.4 kB]
Get:10 http://us.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 64x64 Icons [53.7 kB]
Get:11 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages [153 kB]
Get:12 http://security.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [204 B]
Get:13 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [152 kB]
Get:14 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 DEP-11 Metadata [149 kB]
Get:15 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 48x48 Icons [153 kB]
Get:16 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 64x64 Icons [263 kB]
Get:17 http://us.archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 DEP-11 Metadata [2,464 B]
Get:18 http://us.archive.ubuntu.com/ubuntu bionic-backports/universe amd64 DEP-11 Metadata [5,100 B]
Get:19 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata [4,448 B]
Fetched 1,867 kB in 1s (1,748 kB/s)
Reading package lists... Done

Thanks very much, after I enabled universe repository everything is good.

@JerryBian, was Universe deliberately removed at some point? Don't think I've ever seen a default setup that didn't already include that.
@joshfree - Possibly as a general comment to the Linux Prereqs and Setup pages?

@leecow Actually no, I just tried reinstall Ubuntu Server 18.04.1(ubuntu-18.04.1-live-server-amd64 .iso from portal) and I didn't find any step allow me to setup repository or something like that during the installation. After installed successfully, I checked that APT source list, and universe is not there just like before.
@joshfree Exactly, I executed that command before installing dotnet SDK.

Thanks for the extra info @JerryBian - we'll note the need to look for this in Server image scenarios.

Still having same issue.

I'm having the same issue when trying to update to the current version from dotnet 2.1.302 on Ubuntu 18.04.1.  I have "universe" repository added.  I tried installing dotnet-runtime-deps-2.1 with the following result:

From what I can find, libicu55 has been removed from 18.04 and moved to libicu60

@bartonjs @wfurt can you help here please? We test Ubuntu 18.04 in our CI, so there should be a way to make it happen ...

I manually downloaded libicu60 from this url https://packages.ubuntu.com/bionic/amd64/libicu60/download
then ran sudo apt install dotnet-sdk-2.1 and it worked.

@JerryBian , can you please try installing dotnet-runtime-deps-2.1 and dotnet-runtime-2.1 package separately and share the log here?
that worked for me, thanks

thanbks @SYNTAXDZ , follow your suggestion, it said that

dotnet-runtime-deps-2.1 : Depends: libicu55 but it is not installable

after that, I installed libicu55,
sudo add-apt-repository "deb http://security.ubuntu.com/ubuntu xenial-security main"     sudo apt-get update     sudo apt-get install libicu55
and then install net core

sudo apt-get install dotnet-sdk-2.1

Now, I had dotnet core running on Ubuntu Server 18.04.1

thanbks @SYNTAXDZ , follow your suggestion, it said that

dotnet-runtime-deps-2.1 : Depends: libicu55 but it is not installable

after that, I installed libicu55,
sudo add-apt-repository "deb http://security.ubuntu.com/ubuntu xenial-security main"
sudo apt-get update
sudo apt-get install libicu55
and then install net core
sudo apt-get install dotnet-sdk-2.1
Now, I had dotnet core running on Ubuntu Server 18.04.1

This worked for me on Ubuntu Server 18.04.1!
Thanks!

@thedon-chris : we are discussing this in

I think you should follow this.

@thedon-chris : we are discussing this in
dotnet/core-setup#4724 (comment)
I think you should follow this.

Thanks for the information in that thread, it to helped resolve my issue.  The issue appears to have happened when I upgrade from 16.04 to 18.04.  My dotnet core package version was still pointing at Xenial instead of Bionic.  I tried completely removing the dotnet core Xenial package and installing the Bionic version but it did not work. I ended up manually editing my /etc/apt/sources.list.d/msprod.list to point at bionic which resolved the issue.

cc @leecow . Thanks @dbegg35 for sharing the reproducible step.

Hello I had the same issue with dotnet-sdk-2.2.
Problem:
Unable to locate package aspnetcore-runtime-2.1
Couldn't find any package by glob 'aspnetcore-runtime-2.1'
Couldn't find any package by regex 'aspnetcore-runtime-2.1'

Solution:
Skip all instructions from https://dotnet.microsoft.com/download/linux-package-manager/ubuntu18-04/sdk-current
cp /etc/apt/sources.list.d/microsoft-prod.list.save /etc/apt/sources.list.d/microsoft-prod.list

sudo add-apt-repository universe
sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install dotnet-sdk-2.2

The command sudo dpkg -i packages-microsoft-prod.deb is renaming microsoft-prod.list to microsoft-prod.list.save

The following packages have unmet dependencies:
dotnet-runtime-deps-2.1 : Depends: liblttng-ust0 but it is not installable
E: Unable to correct problems, you have held broken packages.

authors: JerryBian SYNTAXDZ alokraj68 armand1m bellmed dbegg35 jerryno6 karelz leecow mateti rakeshsinghranchi thedon-chris vbondarev

repo: dotnet/core


text:
.NET Core 3.0 Preview 1 makes app fail to start

Issue Title
Using latest version of .NET Core 3.0.0 SDK (009812) introduces regression into an existing app
General
Upgrading to the preview version and using it instead of 2.2.0 results in the following exception during app start:
Application startup exception: System.InvalidOperationException: Scheme already exists: ASOS
   at Microsoft.AspNetCore.Authentication.AuthenticationOptions.AddScheme(String name, Action1 configureBuilder)
   at Microsoft.Extensions.Options.OptionsFactory1.Create(String name)
   at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode)
   at System.Lazy1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
   at System.Lazy1.CreateValue()
   at Microsoft.AspNetCore.Authentication.AuthenticationSchemeProvider..ctor(IOptions1 options, IDictionary2 schemes)

I'm using OpenId.Connect in my app
https://github.com/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/issues/210

Do you have a minimal repro for ASP.NET team?

This issue was moved to aspnet/AspNetCore#5700

source: gharchive/issue

authors: Eilon godrose karelz

license: MIT

license_type: permissive

license_source: github-api


text:
Why is there no Microsoft.UI.WinForms .Net Core package

Hi,
I have a general question, that really is not clear to me, it's not a troll question.
I don't understand the Microsoft strategy at this point, why is it not possible to create a WinForms project on .NET core?
Why developing 2 .NET Frameworks? If everything could be possible with one? (.NET core)
It would be great to have packages like:
Microsoft.UI.WinForms
Microsoft.UI.WPF
Microsoft.UI.KDEGuiManager (I don't know the real name)
Microsoft.UI.GnomeGuiManager (I don't know the real name)
Or do you plan to bring all the features of .NET Monolith to .NET core and shut it down some time in the future?
In my opinion, .NET Monolith does not have any benefits in the near future over .NET core, if the projects are using MSBuild projects and the API's grow further let's say on .NET Core 2.0 I think there is API's wise no benefit for .NET Monolith.
But, if you still just allow UI applications with the old .NET, you force people to use it, why?
I hope you can answer may be a few of this questions/thoughts or just share your developers opinion.
Kind regards

Agreed, It puzzles me why Microsoft has chosen to have multiple frameworks other than the fact that the full framework is years in the making and obviously still in heavy use. But, Why in the world would you not have a roadmap to make a better framework that can eventually replace both the full windows only versions and mono. There are plenty of API's that can be wrapped to provide Native UI and OS libraries that can be accessed in both Mac and Linux in addition to what works on windows. Just look at AvaloniaUI, ETO.Forms and Xamarin.Forms all prove that a consistent method can be provided to provide desktop application capability to .NETCore that will provide native interfaces across major OS's including mobile devices.
Why not capitalize on this concept and once and for all provide a cross platform solution that allows developers to get things done. Why can't we write apps on any OS that can work anywhere including IOT and mobile devices with one unified framework. Also it IMHO is a crime that Microsoft has not embraced the entire .NET ecosystem which would in my opinion provide them with a clear winner for example, there have been many of languages ported or created to run on the platform, Boo, Java, Python, Ruby, PHP, Cobra, Cobol, Typescript, Javascript and several others. It baffles me why Microsoft does not support these efforts so that .Net can attract more usage I suspect many developers of PHP or Java or Ruby would love to be able to maintain their skill set using the dotnet core as it provides many benefits and allows for seamless integration not to mention it opens up a whole lot of mature code that has been written over the years to the dotnet ecosystem. It actually makes me upset to see addins and plugins for these languages fall unmaintained and become not usable in monodevelop, sharpdevelop and even VS has seen some come and go. It would be awesome to be able to have multiple langage projects using one framework to maximize the best of the entire development ecosystem not just one companies vision.
Now that .Net is opensource it would be wonderful to see these efforts united to bring the framework inline with what it should be and see these languages being ported to Roslyn and brought inline with the current modern direction and standards of the .net core as a whole. It's totally possible and as example php is currently being ported to the Roslyn stack and dotnet core it's called peachpie and is the natural evolution of the Phalanger project. How come nobody tries to embrace a community instead of just their vision? Why can't we use the .NET Foundation as a way to bring a team together that consist of these projects spearheaded by a common goal for example we have the ASP.Net team, The Roslyn Team the .NET Core team how come we can't extend an offer and official support to the developers of relevant projects like Boo, PeachPie, IronPython, IronRuby and the many others including ETO.Forms and AvaloniaUI to become a unified foundation with the goal of making dotnetcore a defacto standard with all the love bells and jingles of a xplat framework that supports not just C# and VB.Net but all the other languages that have already been proven to run on the CLR with full development capabilities including a UI kit, Web, API, Mobile and IOT out the box. It's a shame... Just my opinion..

I hope this .

Related to: #388.
My team (the Microsoft .NET team) is focused on .NET Core as a cloud and web framework. We know that folks would like us to build additional application types for .NET Core. For now, we're remaining focused. Many other developers want us to stay focused on what we've started with .NET Core and that's our intention.

Or do you plan to bring all the features of .NET Monolith to .NET core and shut it down some time in the future?

Neither. We plan to keep both in place and invest in both. In some cases, there is overlap in scenarios and other cases not. That's part of building something new for .NET developers.

Please re-activate if you would like to discuss further.

Does Microsoft .NET team has a plan to bring .Net WinForm in .Net Core?

Still focused on services and command line applications.

Any way to create a Windows Service using .net core?
Or just console apps?

With the Windows Compatibility Pack providing access to Windows-only APIs on .NET Core, I hope Winforms (and WPF) support would be reconsidered as well. This is not about providing a full-fledged, cross-platform UI toolkit (an enormous endeavor), just to allow writing .NET Core applications which can access Winforms.
.NET Core and .NET Framework are starting to diverge. Up to now it's been reasonable to just write your winforms application in .NET Framework, and take a dependency on a .NET Standard 2.0 library. However, .NET Core 2.1 contains some valuable API additions and optimizations (Span/Memory) which are completely inaccessible to a .NET Framework application, as there's no .NET Standard 2.1. So this will become more and more of a problem as .NET Core evolves and .NET Framework stagnates.

@markusschaber, regardless of how obsolete and outdated Windows Forms is, it's widely used by applications which could benefit from being ported to .NET Core. I'm assuming that simply making Windows Forms available in .NET Core on Windows shouldn't be a huge challenge (I may be wrong). The same could be argued for WPF.
The "fresh, future-proof UI framework, which is platform independent" which you're asking for is a huge undertaking (just look at the history of this in Java or other technology spaces). Of course it would be great to have this one day, but I'm more concerned with the short- and medium-term here.
.NET Core is clearly still focused on server workloads at the moment, and that's fine. But as it starts to jump ahead of .NET Framework and a gap starts to appear, it may make sense to at least allow Windows applications to be ported, depending on how much effort it would involve. Someone could also create bindings for Similarly, someone could set up bindings for Gtk and/or Qt to allow for cross-platform GUI (not sure what state Gtk# is in and what it would take to bring it to .NET Core).

@roji I know, we have some large Windows Forms Codebase in our house. We had plans to replace the UI by WPF and started some prototypes, but then stopped those plans, as WPF also is not quite the future.
As far as I can see, Xamarin.Forms is already heading this direction (https://blog.xamarin.com/glimpse-future-xamarin-forms-3-0/), but it's not ready for prime time yet.

Neither. We plan to keep both in place and invest in both. In some cases, there is overlap in scenarios and other cases not. That's part of building something new for .NET developers.

This comment didn't age well

As a WinForms developer, I have been ignored by Microsoft since 2005 on this topic.

@DataJuggler I'm confused. Most of the information in this issue is severely outdated, since Winforms are part of .Net Core starting with .Net Core 3. Were you not aware of that? If you have some issues with the support that's in .Net Core now, I'd suggest you to open a new issue with more details.

authors: DataJuggler Mds92 Petermarcu XdX-Software collinoswalt maikebing markusschaber mrpastewart ricardopolo richlander roji svick


text:
Visual studio 2019 after last update no longer showing the Data context class  when I try to add new controller using MVC template

Visual studio 2019 after last update no longer showing the Data context class when I try to add new controller using MVC  template

if I try to add new controller by selecting the MVC template as shown in the image
if found that if my Db class extend DbContext it will work and show up in the dialog
if my DB class extend IdentityDbContext it will not show in the [Data context class]

to reproduce the problem just create a new MCV based on .net core 3.1 the problem will be there

Updating Visual studio 2019 to Version 16.6.3 solves the problem


text:
User Story: Package authors can validate that their multi-targeted packages are well-formed

The tooling we provide as part of the SDK has close to zero validation that multi-targeted packages are well-formed. For example, a package that multi-targets for .NET Core 3.1 and .NET Standard 2.0 needs to ensure that code compiled against the .NET Standard 2.0 binary can run against the binary that is produced for .NET Core 3.1. In the dotnet/runtime repo we have tooling that ensures that this is the case, but this can't easily be used by our customers. We have seen this issue in the wild, even with 1st parties, for example, the Azure AD libraries.
Spec TBD
Rough list from @anipik:

Compatible frameworks in package have compatible surface area (including identity and version).
Ref is compatible with source (including version), source is consistent (in case of many src, they all have same version and public surface).
No duplicate types in the closure.
No binding redirects in the closure (permit baselining).
Compat with previous release. Both API compat and package applicability compat.
No applicability holes. EG ref/net5.0 without src/net5.0
Warn on unnecesary package references. A package reference that is never used directly by assembly. A package reference that gets removed by conflict resolution. PackageReference which is exposed to compile but only used at runtime.
NETFramework targeting when .NETStandard is supported

Assigning myself as well @ericstj agreed with me to drive this together with @terrajobst once specs are out.

Includes moving our code from CCI to S.R.M

Includes moving our code from CCI to S.R.M

he plan is to use Roslyn (Based on PublicApiAnalyzer). If we use S.R.M we will end up on the same spot we're right now where every new Roslyn feature like Nullable ref types we need to wait for S.R.M to support that, or implement it ourselves.

Sounds good, my understanding was wrong.

Bulk closing .NET 6 epics and user stories. If you think this issue was closed in error, please reopen the issue and update it accordingly.

authors: danmosemsft mairaw safern terrajobst


text:
dotnet' is not recognized as an internal or external command

Problem encountered on https://dotnet.microsoft.com/en-us/learn/dotnet/hello-world-tutorial/install#
Operating System: windows
Provide details about the problem you're experiencing. Include your operating system version, exact error message, code sample, and anything else that is relevant.
I installed .NET 6 SDK and I can see a folder named "dotnet" under C:/Program Files/, but I still receive a "'dotnet' is not recognized as an internal or external command" error

This might be an issue with PATH.
Check the output of the where.exe dotnet command and if your system is x64 and the x86 path returns first, please follow the steps at https://github.com/dotnet/core/issues/5962#issuecomment-780084535 to fix the issue.
Let us know how that goes.

This might be an issue with PATH.
Check the output of the where.exe dotnet command and if your system is x64 and the x86 path returns first, please follow the steps at #5962 (comment) to fix the issue.
Let us know how that goes.

It doesn't works

This might be an issue with PATH.
Check the output of the where.exe dotnet command and if your system is x64 and the x86 path returns first, please follow the steps at #5962 (comment) to fix the issue.
Let us know how that goes.

It doesn't works

Can you share the output of the following commands?
where.exe dotnet
dotnet --info
Make sure you open a new command prompt window.


text:
[armel] Assertion `executionAborted' failed

I am hitting an assertion on Tizen/armel target:
#> ./System.Collections.Tests/xunit.console.netcore System.Collections.Tests/System.Collections.Tests.dll @System.Collections.Tests/System.Collections.Tests.rsp -xml System.Collections.Tests/testResults.xml -notrait category=nonnetcoreapptests -notrait category=failing

xUnit.net console test runner (32-bit .NET Core)
Copyright (C) 2014 Outercurve Foundation.

xunit.console.netcore: /home/akvochko/dotnet/corert/src/Native/Runtime/Full/../coreclr/gcinfodecoder.cpp:675: bool GcInfoDecoder::EnumerateLiveSlots(PREGDISPLAY, bool, unsigned int, GCEnumCallback, void *): Assertion `executionAborted' failed.

Aborted (core dumped)

Backtrace:
#0  0xf7253094 in raise () from /lib/libc.so.6
#1  0xf72543f0 in abort () from /lib/libc.so.6
#2  0xf724bf0c in ?? () from /lib/libc.so.6
#3  0xf724bfe8 in __assert_fail () from /lib/libc.so.6
#4  0x000e9838 in GcInfoDecoder::EnumerateLiveSlots (this=0xfffeebf8, pRD=0xfffeeda8, reportScratchSlots=false, inputFlags=0, pCallBack=
    0x4a7e9 <EnumGcRefsCallback(void*, void**, unsigned int)>, hCallBack=0xfffeecb0) at /dotnet/corert/src/Native/Runtime/Full/../coreclr/gcinfodecoder.cpp:675
#5  0x000ece20 in UnixNativeCodeManager::EnumGcRefs (this=0x13ee640, pMethodInfo=0xfffeee34, safePointAddress=0x21a0cf <System_IO_FileSystem_System_IO_File__ReadAllLines+114>,
    pRegisterSet=0xfffeeda8, hCallback=0xfffeecb0) at /dotnet/corert/src/Native/Runtime/unix/UnixNativeCodeManager.cpp:162
#6  0x0004a7c8 in RedhawkGCInterface::EnumGcRefs (pCodeManager=0x13ee640, pMethodInfo=0xfffeee34,
    safePointAddress=0x21a0cf <System_IO_FileSystem_System_IO_File__ReadAllLines+114>, pRegisterSet=0xfffeeda8, pfnEnumCallback=
    0xa3d01 <WKS::GCHeap::Promote(Object**, ScanContext*, unsigned int)>, pvCallbackData=0xfffef1d0) at /dotnet/corert/src/Native/Runtime/gcrhenv.cpp:534
#7  0x0005ac64 in Thread::GcScanRootsWorker (this=0xf77e74c8, pfnEnumCallback=0xa3d01 <WKS::GCHeap::Promote(Object**, ScanContext*, unsigned int)>, pvCallbackData=0xfffef1d0,
    frameIterator=...) at /dotnet/corert/src/Native/Runtime/thread.cpp:510
#8  0x0005aac2 in Thread::GcScanRoots (this=0xf77e74c8, pfnEnumCallback=0xa3d01 <WKS::GCHeap::Promote(Object**, ScanContext*, unsigned int)>, pvCallbackData=0xfffef1d0)
    at /dotnet/corert/src/Native/Runtime/thread.cpp:412
#9  0x0004cd12 in GCToEEInterface::GcScanRoots (fn=0xa3d01 <WKS::GCHeap::Promote(Object**, ScanContext*, unsigned int)>, condemned=0, max_gen=2, sc=0xfffef1d0)
    at /dotnet/corert/src/Native/Runtime/gcrhscan.cpp:85
#10 0x000dab9c in GCScan::GcScanRoots (fn=0xa3d01 <WKS::GCHeap::Promote(Object**, ScanContext*, unsigned int)>, condemned=0, max_gen=2, sc=0xfffef1d0)
    at /dotnet/corert/src/Native/gc/gcscan.cpp:170
#11 0x0008ab6a in WKS::gc_heap::mark_phase (condemned_gen_number=0, mark_only_p=0) at /dotnet/corert/src/Native/Runtime/Full/../../gc/gc.cpp:19600
#12 0x0008483c in WKS::gc_heap::gc1 () at /dotnet/corert/src/Native/Runtime/Full/../../gc/gc.cpp:15270
#13 0x0009960a in WKS::gc_heap::garbage_collect (n=0) at /dotnet/corert/src/Native/Runtime/Full/../../gc/gc.cpp:16861
#14 0x0007afa6 in WKS::GCHeap::GarbageCollectGeneration (this=0x13e0020, gen=0, reason=reason_alloc_soh) at /dotnet/corert/src/Native/Runtime/Full/../../gc/gc.cpp:35196
#15 0x0007ec98 in WKS::gc_heap::try_allocate_more_space (acontext=0xf77e74c8, size=296, gen_number=0) at /dotnet/corert/src/Native/Runtime/Full/../../gc/gc.cpp:13074
#16 0x0007ee00 in WKS::gc_heap::allocate_more_space (acontext=0xf77e74c8, size=296, alloc_generation_number=0) at /dotnet/corert/src/Native/Runtime/Full/../../gc/gc.cpp:13370
#17 0x000d1464 in WKS::gc_heap::allocate (jsize=296, acontext=0xf77e74c8) at /dotnet/corert/src/Native/Runtime/Full/../../gc/gc.cpp:13401
#18 WKS::GCHeap::Alloc (this=0x13e0020, context=0xf77e74c8, size=296, flags=0) at /dotnet/corert/src/Native/Runtime/Full/../../gc/gc.cpp:34542
#19 0x0004a5b4 in RhpGcAlloc (pEEType=0x125efb4, uFlags=0, cbSize=296, pTransitionFrame=0xfffef8a8) at /dotnet/corert/src/Native/Runtime/gcrhenv.cpp:273
#20 0x000f0f12 in RhpNewArrayRare () at /dotnet/corert/src/Native/Runtime/arm/AllocFast.S:324
#21 0x0125efb4 in vtable for xunit_abstractions_Xunit_Abstractions_ITestFailed ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Could you give any pointers as to where the problem could be?

I would start by looking at the disassembly of the method that this is trying to enumerate, and see why we have not found the IP in the list of ranges.
If I were to make a guess what the problem may be, it may be another one of those problems where the Thumb bit is not getting masked out.

@jkotas Thank you! After some further investigation it appears that this offset https://github.com/dotnet/corert/blob/8dc11b8791b61ca5afe01adcfb3e4de2839f9a75/src/Native/Runtime/unix/UnixNativeCodeManager.cpp#L148 is off by 1 due to the Thumb bit being set in safePointAddress and cleared in pMethodStartAddress. Is this the right place to fix?

authors: jkotas kvochko

repo: dotnet/corert


text:
Make it easier to iterate through an ArraySegment

Saves 1 boxing per enumerator. See https://github.com/dotnet/corefx/issues/14170 and https://github.com/dotnet/coreclr/pull/8559

Thank you!

source: gharchive/pull-request

authors: AlexRadch jkotas


text:
12.6.6.1: Defensive copy of input parameter

Describe the bug
In the C# 7.x draft, 12.6.6.1 (Function member invocation / General) describes how a copy of a value-type instance "not classified as a variable" is made and used instead of the original.  This defensive copying should also apply to an input parameter unless its type is a readonly struct.
Example
using System;
struct S {
    public int I;
    public void M() { I++; }
}
readonly struct R {
    public void M() {}
}
class C {
    static void Main() {
        N(new S(), new S(), new R());
    }
    static void N(S s1, in S s2, in R r) {
        s1.M(); // no copying
        Console.WriteLine(s1.I); // 1

        s2.M(); // copy required
        Console.WriteLine(s2.I); // 0

        r.M(); // no copying
    }
}

Expected behavior
In 12.6.6.1, declare:

If E is not classified as a variable, or if E is an input parameter (15.6.2.3) and V is not a readonly struct type (16.2.2), then a temporary local variable of E’s type is created and the value of E is assigned to that variable.

Additional context
None.

@KalleOlaviNiemitalo  – Is the “defensive” copy you refer to the one specified in §12.6.2.3, bullet 1, sub-bullet 2?

@KalleOlaviNiemitalo – OK, I see what you’re talking about now. Thanks.

Meeting 2023-09-06: Assigning to Bill, who will find the relevant places and also discuss with the compiler team.

authors: KalleOlaviNiemitalo Nigel-Ecma jskeet

repo: dotnet/csharpstandard


text:
AzDo Agents Running Out Of Space While Populating Content On AzDo Default Workspace

AzDo jobs are failing with an out of space error when populating the _work folder with job spacific content such as downloading source from github repos.
Example Failing Job:
https://dev.azure.com/dnceng/internal/_build/results?buildId=2385275&view=logs&j=f591da48-0850-5155-a439-de1df1bc460a&s=38561c8f-5ef4-5052-3f86-c3265902c257&t=362e5ba2-741c-5970-c75d-568617e86054&l=20

Release Note Category

[ ] Feature changes/additions
[ ] Bug fixes
[ ] Internal Infrastructure Improvements

Release Note Description

The root cause of the issue was identified by the 1ES Hosted Pools team and they provided instructions to delete old VM Scale Set resources which were still being used by the target Pool after it was converted to a 'stateless' setting.
After the resources were deleted, the issue subsided and we are still seeing successful build so the new stateless VMs should be getting used now.

repo: dotnet/dnceng


text:
msiexec issue

Type of issue
Code doesn't work
Description
[Enter feedback here]
Hi
msiexec flags the given example     msiexec /x {EEC1BB5F-3391-43C2-810E-42D78ADF3140} /q IGNOREDEPENDENCIES=ALL    as a syntax error. It accepts msiexec /uninstall /package  {EEC1BB5F-3391-43C2-810E-42D78ADF3140} /q IGNOREDEPENDENCIES=ALL but for me this had no effect.
Also, I was unable to see how to uninstall any standalone .NET SDK installers from Control Panel, and had to do it from Visual Studio.
Cheers
Bill
Page URL
https://learn.microsoft.com/en-us/dotnet/maui/troubleshooting?view=net-maui-8.0
Content source URL
https://github.com/dotnet/docs-maui/blob/main/docs/troubleshooting.md
Document Version Independent Id
1cdfd37b-a119-da4e-a56e-a60dde31bb18
Article author
@davidbritch
Metadata

ID: 1cdfd37b-a119-da4e-a56e-a60dde31bb18
Service: dotnet-mobile
Sub-service: dotnet-maui

I substituted my guid of course.

So sorry!! I was just that in PowerShell I had not escaped the curly brackets. All good.

repo: dotnet/docs-maui


text:
broken link

Hosting a Windows Forms Control in WPF by Using XAML Sample
https://go.microsoft.com/fwlink/?LinkID=160000

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: c867d576-eb36-2ffe-d70e-392d2d76a19b
Version Independent ID: cc6b28a6-9d9d-64a3-5e1a-5bc308b38e45
Content: Walkthrough: Hosting a Windows Forms Control in WPF by Using XAML
Content Source: docs/framework/wpf/advanced/walkthrough-hosting-a-windows-forms-control-in-wpf-by-using-xaml.md
Product: dotnet-framework
Technology: dotnet-wpf
GitHub Login: @dotnet-bot
Microsoft Alias: dotnetcontent

Thank you for your feedback @flemingm. @SimonCropp took care of that in PR #11673

authors: flemingm mairaw

repo: dotnet/docs


text:
When the object is eligible for finalization

I am reading an article Finalizers (C# Programming Guide) right now that contains the following statement:

When the object is eligible for finalization

It is mean "If object class has defined finalizer"?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 26b6bf23-9cd5-a7c5-dc6a-f9b911d784ff
Version Independent ID: 9f040450-27b7-7e4a-b908-c3695f6aaad1
Content: Finalizers - C# Programming Guide
Content Source: docs/csharp/programming-guide/classes-and-structs/destructors.md
Product: dotnet-csharp
GitHub Login: @BillWagner
Microsoft Alias: wiwagn

I think that is implied. Consider the paragraph above:

The programmer has no control over when the finalizer is called because this is determined by the garbage collector. The garbage collector checks for objects that are no longer being used by the application. If it considers an object eligible for finalization, it calls the finalizer (if any) and reclaims the memory used to store the object.

I think eligibility is based on two things: (1) the object has a finalizer defined (2) the object is ready for garbage collection.
I think the description is accurate. Please let me know if this answered your question.

@Thraka, thanks for clearing that up!

authors: Thraka adamshakhabov


text:
Missing C# compiler warning CS8634

id: CS8634
title: The type cannot be used as type parameter in the generic type or method. Nullability of type argument doesn't match 'class' constraint.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: fc586192-534e-0108-d265-c4f2f6947c57
Version Independent ID: 4d39f536-5d78-335b-3525-d4b581c28fdc
Content: C# Compiler Errors
Content Source: docs/csharp/language-reference/compiler-messages/index.md
Product: dotnet-csharp
Technology: csharp-diagnostics
GitHub Login: @BillWagner
Microsoft Alias: wiwagn

@tdykstra Why was this closed "as completed" when there still isn't any documentation page for CS8634?
The documentation lookup link (used by VS) for this code gives me a HTTP 404 error: https://msdn.microsoft.com/query/roslyn.query?appId=roslyn&k=k(CS8634)
Screenshot proof:

Fixed in #30045

authors: BillWagner Jehoel paulomorgado


text:
Lacking information on .NET architectural components docs page

When I see "architectural components" in the title of a page, I expect there to be information about the first order segments that make up .NET. Maybe info about the Object hierarchy, some important namespaces, and some common extensions for IO, web, etc. This information is lacking in this page.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 0ba03a7c-8cbe-7670-c2e9-9b692556361c
Version Independent ID: d085d268-bff6-f355-80b4-01c1023a5914
Content: .NET architectural components
Content Source: docs/standard/components.md
Product: dotnet
Technology: dotnet-standard
GitHub Login: @cartermp
Microsoft Alias: gewarren

Most of the info you requested is included on the Intro page. I have a PR to delete the article you referenced since it duplicates much of the Intro article.


text:
Missing .Net Framework example

Please provide samples and example with .Net Framework, all the samples and examples target .Net Core

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 1dce49db-3548-7dad-bdb1-812efde7ac86
Version Independent ID: 390a9c7a-2537-25ca-c041-0284c253acff
Content: Deploy a model in an ASP.NET Core Web API - ML.NET
Content Source: docs/machine-learning/how-to-guides/serve-model-web-api-ml-net.md
Product: dotnet-ml
GitHub Login: @luisquintanilla
Microsoft Alias: luquinta

Hi @sanketshah11
Thank you for your suggestion. Unfortunately, there are no plans to create .NET Framework samples at the moment. We would encourage you to use .NET Core instead. However, if that's not an option, the concepts are generally transferrable. For example, assuming you're using an ASP.NET MVC (.NET Framework) application and already have a model you want to deploy to it as demonstrated in the article you raised this issue from:

Install Microsoft.Extensions.ML NuGet package to use the PredictionEnginePool service
Use dependency injection to register your model
Inject the registered PredictionEnginePool service into your controller
Use the injected PredictionEnginePool service to make predictions with the Predict method.

If working with non-web applications, you can use the PredictionEngine convenience API or the Transform method to make multiple predictions. Here is a guide on how to use a model to make predictions:
Use a model to make preedictions
I would encourage you to take a look at the how-to guides since much of the ML.NET code would be the same for the most part regardless of whether you're using .NET Core or .NET Framework.

Load Data
Prepare Data
Train and evaluate a model

Another alternative would be to use Model Builder or the ML.NET CLI to train a model. Both options provide you with a low-code way to train models. Note that they generate consumption and retraining code using .NET Core. However, using the generated code is optional.
I would also suggest in addition to looking at our guides and tutorials, check out the machinelearning-samples repository to get a sense of how to use the framework for different scenarios. I see you have already opened an issue dotnet/machinelearning-samples#842. I'll add a few tags so users are aware that help is needed on this and community contributions and input are welcome.  You can also check out the Community Samples. There is currently a sample that uses .NET Framework and an older version of ML.NET. Please note that the post is written in Chinese, so you may have to enable your browser translation features (if available) if that is not your native language.
I hope this helps. I'll close this issue for now and keep the issue in the machinelearning-samples repo open. Thanks again for your feedback.

If I could have used .NET Core, I would have not asked for a sample. I already went through all the links posted in the answer before posting this request, even the one written in Chinese and the samples on github. Why are all examples focused on .Net Core even though the website clearly suggests it works on .Net Framework. Will all the functionality work as expected for a commercial project ? Sample would be very helpful.

Hi @sanketshah11
ML.NET is built on .NET Standard which means it supports both .NET Core and .NET Framework. The choice to build samples for .NET Core comes from the overall .NET strategy.  You can read more about it in this blog post. While future investments will be made on .NET Core, .NET Framework applications will continue to be supported and are safe to stay on that platform.


text:
Can C# 9.0 be used with .NET Core 3.1 ?

[Enter feedback here]
Can C# 9.0 be used with .NET Core 3.1 ?  And is it supported ?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: c36588d0-6bdf-1740-220c-10b20bb88730
Version Independent ID: 587ed47f-f532-e018-9b0d-6ee76afd20e4
Content: What's new in C# 9.0 - C# Guide
Content Source: docs/csharp/whats-new/csharp-9.md
Product: dotnet-csharp
Technology: csharp-whats-new
GitHub Login: @BillWagner
Microsoft Alias: wiwagn

You can use it, but it's not officially supported, and some features that depend on runtime support might not work.

@pb-qs Good question. As pointed out, that's not supported.
It is possible to edit your project file to use C# 9 with a project that targets .NET Core 3.1, but any number of features may not work as expected.
I'm more curious as to what the blockers are moving from .NET Core 3.1 to .NET 5. That upgrade should be just a matter of changing the TFM. Can you explain why that's a concern?

Hi Bill, yes I was quite encouraged to see that I could get a lot of the C#9 to work targetting netcore 3.1, so my main question is it supported to do so?
As to why I can't just go to net 5.0, well the component I am writing is an Azure Function making use of Durable Functions.  Sadly not available until net 6.0 (c. Nov '21) according to the docs.

Ping @CamSoper for any assistance on .NET 5 in Azure Functions.

@pb-qs I may stand corrected. I wasn't aware the Durable Functions extensions had such a limitation. Hey @anthonychu, can you please expand on this?
Thanks!

That's correct. If you want to use C# 9 or higher, you'll need to wait for Functions to support .NET 6. We should have a preview out in the summer.

Thanks for confirming Anthony!Qualitas Software | enquiries@QualitasSoftware.comFrom: Anthony Chu @.***>Sent: Tuesday, 30 March 2021, 18:48To: dotnet/docsCc: Peter; MentionSubject: Re: [dotnet/docs] Can C# 9.0 be used with .NET Core 3.1 ? (#23547)
That's correct. If you want to use C# 9 or higher, you'll need to wait for Functions to support .NET 6. We should have a preview out in the summer.
—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or unsubscribe.
[
{
@.": "http://schema.org",
@.": "EmailMessage",
"potentialAction": {
@.": "ViewAction",
"target": "https://github.com/dotnet/docs/issues/23547#issuecomment-810455384",
"url": "https://github.com/dotnet/docs/issues/23547#issuecomment-810455384",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
@.": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]

Hi - this issue was closed, without being resolved.   Can someone reopen please?

where I have to target .net core 3.1, so can I use C# 9.0 with that ?  Is that supported ?

You can do that, but as I mentioned earlier, it's not officially supported. Some features will work correctly, some other features won't work but can have some workarounds, and other features might not work completely. See https://github.com/dotnet/roslyn/discussions/47701 for some more information.

@pb-qs

this issue was closed, without being resolved. Can someone reopen please?

We closed it because the article is correct: C# 9 isn't supported on .NET 3.1. I'd raise this suggestion for the Azure Functions team, where hopefully enough customers ask for it to get that updated.

authors: BillWagner CamSoper Youssef1313 anthonychu pb-qs


text:
Inverse Spanish Inquisition for using directive

“The using keyword has three major uses:

The using statement defines a scope at the end of which an object will be disposed.

The using directive creates an alias for a namespace or imports types defined in other namespaces.”

One does expect a third bullet point…

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: a731ad7b-0655-4bb3-2478-0cbb4d063f02
Version Independent ID: 2ba9241c-0836-d05e-5ba1-ebc5498d2009
Content: using keyword - C# Reference
Content Source: docs/csharp/language-reference/keywords/using.md
Product: dotnet-csharp
Technology: csharp-language-reference
GitHub Login: @BillWagner
Microsoft Alias: wiwagn

Good catch @kaimikael
I've opened a PR to fix this issue.

authors: BillWagner kaimikael


text:
Suggested change to code sample to address likely issue

In the "Load plugins" example...
the addition of the 1st if check resolves the error message TypeLoadException 'Method 'M' in type 'T' from assembly 'A' does not have an implementation'.
that can occur if a framework type like System.Text.Json.JsonDocument is a parameter on the shared interface AND the resolver find System.Text.Json in the nuget cache and loads it into the new AssemblyLoadContext
        protected override Assembly Load(AssemblyName assemblyName)
        {
            // This will fallback to loading the assembly from default context.
            if (AssemblyLoadContext.Default.Assemblies.Any(a => a.FullName == assemblyName.FullName))
            {
                System.Diagnostics.Debug.WriteLine($"Load from default context => [{assemblyName.FullName}]");
                return null;
            }

            string assemblyPath = _resolver.ResolveAssemblyToPath(assemblyName);

            if (assemblyPath != null)
            {
                return LoadFromAssemblyPath(assemblyPath);
            }

            return null;
        }

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 06023407-704f-0ace-e89a-eedd9f95a007
Version Independent ID: f25a6e1a-cb10-867b-0522-a377bf9d016b
Content: Create a .NET Core application with plugins - .NET
Content Source: docs/core/tutorials/creating-app-with-plugin-support.md
Product: dotnet-fundamentals
GitHub Login: @jkoritzinsky
Microsoft Alias: jekoritz

If you agree with this suggestion... the code sample at https://github.com/dotnet/samples/blob/main/core/extensions/AppWithPlugin/AppWithPlugin/PluginLoadContext.cs
should also be updated


text:
Replace broken links in Exceptions section

Replace broken links in Exceptions section
In numerous cases, .NET for Windows Store apps and Portable Class Libraries throw a different exception than apps and libraries that target the .NET Framework.  In most of those cases, the exception information appears in Markdown format. However, since the <exception> section is included in IntelliSense, it must be in XML format and should be enclosed in a <see href=...> element.
Typically, the offending text appears as follows:

In the [.NET for Windows Store apps](http://go.microsoft.com/fwlink/?LinkID=247912) or the [Portable Class Library](~/docs/standard/cross-platform/cross-platform-development-with-the-portable-class-library.md), catch...

It should instead appear as:

In <see href="https://msdn.microsoft.com/library/windows/apps/br230232(v=vs.110).aspx">.NET for Windows Store apps</see> or the <see href="~/docs/standard/cross-platform/cross-platform-development-with-the-portable-class-library.md">Portable Class Library</see>, catch...

@rpetrusha - out of interest, is this the same issue in the namespace summary's - like seen on pages like this one?
https://docs.microsoft.com/en-us/dotnet/api/?view=netframework-4.7.2
I'd assumed it was just a bug on docs.microsoft.com - didn't realise they needed to be that way for Intellisense. 🙂

Yes @ChrisMaddock. But I'll close this as a dupe of #1931. I'm not sure if the href works with the .md links though. I usually transform them into absolute paths. I'll need to test this.

Duplicate of #1931

You can see an example of where I did this fix here for one summary: https://github.com/dotnet/dotnet-api-docs/pull/14/files

authors: ChrisMaddock mairaw rpetrusha


text:
fix typo on azure-training-concepts-model-builder.md

Summary
changes the word  workspace to the correct word  compute
Fixes #Issue_Number (if available)
Fixes #21199

Hi @Mrlinkwii
Thanks for this contribution. The change you made is somewhat accurate. Except, as noted in #21199 the change needs to be made in the "What is an Azure Machine Learning compute" section, not where you currently made the update. Can you please make that change so I can review again.
Thanks

Thanks for making that change @Mrlinkwii
The workspace section still needs to say workspace though. I see it currently has the term compute.

authors: Mrlinkwii luisquintanilla


text:
Porting Feedback from MR

Summary
Updates and fixes to Porting eBook based on MR feedback.

@mjrousos

@IEvangelist can you take a quick look? Probably good to 🚢 at this point.

Should be all set now!


text:
Add dotnet package search documentation

Summary
Add dotnet package search documentation.
Implementation: https://github.com/NuGet/NuGet.Client/pull/5466

Internal previews

📄 File
🔗 Preview link

docs/core/tools/dotnet-package-search.md
dotnet package search

docs/core/tools/index.md
.NET CLI

Thanks for doing this, @Nigusu-Allehu! The content is great, but I noted some ways in which it could more closely follow the patterns we typically use for formatting the CLI docs.

Thank you for reviewing! I will revise this as soon as the product is complete and is about to be released.

@Nigusu-Allehu is this ready to merge?

@Nigusu-Allehu Nigusu Yenework FTE is this ready to merge?

Yes

authors: Nigusu-Allehu tdykstra


text:
Make Main signature consistent

Fixes #40591

Thanks for the reviews, @gewarren.


text:
Update Search() formatting to be consistent with earlier usage

Summary
Update formatting of Search() to be consistent with earlier usage
Fixes: N/A

I also noticed that the SearchDirectoryArgs sample is a struct doesn't extend EventArgs, I can open another pr for this or include it in this one. Not sure if that was intentional when other samples are classes and extend EventArgs.

@rpetrusha I've made the requested changes, looks like the sample are stored in a separate repo so I've made a PR there as well https://github.com/dotnet/samples/pull/423

Thank you, @eonarheim, for submitting the additional PR in the dotnet/samples repo, as well as for making the additional changes to this PR. I'll merge your PR now. Your changes should be live on docs.microsoft.com in the next day or two.

authors: eonarheim rpetrusha


text:
Rename roslyn-project-system -> project-system

We've renamed this repo.

tag @dotnet/roslyn-infrastructure

It looks like the GitHub redirects aren't working for this sort of thing

repo: dotnet/dotnet-ci

license: mit

license_source: bigquery


text:
use proposed api for autoclosing

adopt new proposed api for autoclosing pairs

@rebornix is this enough?

repo: dotnet/interactive


text:
local classification

model builder in classification scenario start training But:
stop at 30mbyte downloaded of this model  file:
resnet_v2_50_299.meta: Downloaded 302616931 bytes out of 202616931
image==>>   https://pasteboard.co/JCptMpL.png
and not going to forward .
and say this error :
[Source=ImageClassificationTrainer; Ensuring meta files are present., Kind=Error] resnet_v2_50_299.meta: Download timed out.
I try many times but training process stop in this step.
what should i do ???

Hi @masgh021
Sorry for the late reply,,  if the download is keeping failing, you can manually download resnet pretrain model from this link
https://aka.ms/mlnet-resources/meta/resnet_v2_50_299.meta

And put it under this path %temp%\MLNET\
Then you should be good to go

@LittleLittleCloud
thank you it works .

@LittleLittleCloud
thank you it works .

Hi, can you share the file? the link is broken.

authors: LittleLittleCloud f-quintero masgh021

repo: dotnet/machinelearning-modelbuilder


text:
A11y_Model Builder_Create New Compute_Info and Relationships: Visual representation (*) is not provided for mandatory fields in the popup.

Check out Accessibility Insights! - Identify accessibility bugs before check-in and make bug fixing faster and easier.
GitHubTags:
#A11y_Model Builder; #A11yMAS; #A11yTCS; #WCAG1.3.1; #Info and Relationships; #Win32;
#DesktopApp; #A11ySev2; #ModelBuilder-Win32-Jun2021; #Visual Studio Client;
Environment Details:
Application name: Model Builder
OS Details:
Windows Version 21H1 OS Build (19043.1083)
Microsoft Visual Studio
Note:
This issue is observed in all popups. In 'Create new workspace', 'Create new resource group' popups  visual representation for edit fields is not provided
Repro Steps:

Enable ML.NET Model builder as a preview feature in tools>options>Environment>preview features.
Create a .NET C# project and tab till project under solution explorer and Add machine learning.
Tab till Image classification under scenario tab and press enter.
Select Azure under environment tab and tab till set up workspace and press enter.
In 'Create New Experiment' dialog, tab till 'New' link beside create new compute name field and press enter
Visual representation (*) is not provided for mandatory fields in create new compute popup.

Actual Result:
Visual representation (*) is not provided for mandatory fields in create new compute popup.
Expected Result:
Visual representation (*) should be provided for mandatory fields in create new compute popup.
User Impact:
Screen Reader users will not know that a field is required if field is not given a visual representation

We may need to pull in Rohan here for how we want to display mandatory fields. Should they be highlighted in red when empty, similar to the VS New project dialogs?

Rohan, we haven't used the * to denote a required field before. We do have a red outline behavior for missing fields on some of the  Azure fields.

@romalpani Can you take a look here?

@beccamc
To make the field "required", we don't use an asterisk in VS (yet). The patterns that we do use are shown here in the guidelines: https://devdivdesignguide.azurewebsites.net/windows/notifications-and-progress/errors-and-validation/#field-validation
For the problem with the "Create new experiment" dialog, the "Compute name" text field should have the "" watermark in it. And supported with validation in case a customer leaves the field empty. The dev-tools team that works on connected services already uses a control that offers this kind of validation (screenshot below). It may save us time if we can reuse that control.
What are the rules for a valid Compute name? We can create an error message (something as seen in the screenshot below).

I got some info from Phil about their error handling control
Ok.  I think you can take a look at: https://devdiv.visualstudio.com/DevDiv/_git/WebTools?path=%2Fdocs%2FShared%2FValidatableControls%2FValidatableControls.md&_a=contents&version=GBmain to get a high level read on how we do this at a control level
ValidatableInputField.xaml does a lot of the work
And a common use looks like:
validatable:ValidatableInputField            Grid.Row="1"            Label="{Binding Path=ContainerImageLabelText, Mode=OneWay}"            IsRequired="true"
</validatable:ValidatableInputField>

Build available here - https://devdiv.visualstudio.com/_apis/resources/Containers/8663755/VSSetup_Release17?itemPath=VSSetup_Release17%2FMicrosoft.ML.ModelBuilder.Gallery.Dev17.vsix

Issue is fixed, a watermark text is given for all required fields. Hence closing this bug.

#Closed;

authors: NiharikaTipirishetty VijayaBharathyA beccamc romalpani


text:
Recommendation: Non-Label/Item/User columns should be "Ignore"

System Information (please complete the following information):
Windows OS: Windows-11-Enterprise-21H2
ML.Net Model Builder 2022: 16.13.10.2251801 (Main Build)
Microsoft Visual Studio Enterprise: 2022(17.3.6)
.Net: 6.0
Describe the bug

On which step of the process did you run into an issue:
Training should be failed after changing the feature column 's Data type from "Single" to "Boolean".

Data Source
https://testpass.blob.core.windows.net/test-pass-data/recommendation-ratings.csv
To Reproduce
Steps to reproduce the behavior:

Select Create a new project from the Visual Studio 2022 start window.
Choose the C# Console App (.NET Core6.0) project template.
Add model builder by right click on the project.
Select Recommendation scenario.
On Data page, select the data source and choose "rating" as Label, "userId" as User, "movieId" as Item.
Change "timestamp" column's Data type from "Single" to "Boolean".
On the Train page, you will see that training is completed successfully.

Expected behavior
Training should be failed.
Screenshot

Additional context:

Timestamp is automatically ignored in this case. All other columns in recommendation training are ignored.
@luisquintanilla Do you think the fact the other columns are ignored should be better advertised to the user?

@luisquintanilla Do you think the fact the other columns are ignored should be better advertised to the user?

@beccamc good question. While @zewditu and I were looking at some of the other scenarios, our "Ignore" behavior wasn't clear. When the column purpose is set to "Ignore", it removes it from the dropdowns in the main Data screen but I believe it still is part of codegen and Try It Out experiences. Similar to this case, since columns not selected as the Id columns are automatically ignored. In both cases, to me it doesn't sound right or at the very least to your point it's unclear what the behavior is. Let's set up some time to better understand what the Ignore behavior is and try to make it more consistent.
Related to #2115

SQL "Ignore GUID columns" is resolved (1504)! Unfortunately It looks like the ignored column values are still being used for sample data and evaluate for text files (2155).
It seems like we should do two things...

[ ] Set all non label/user/item columns as "Ignore" for recommendation scenario
[ ] Make sure ignored columns aren't used for evaluate/consume for all scenarios.

I believe #1756 only applies to ignored columns in the data preview and doesn't apply to this.

That was easy 🙂
I'm okay with that action plan.

Verified on the latest main build 16.14.0.2252604, the error message has been changed to "Version string portion was too short or too long."
Besides, after change "userId" or "movieId" or "timestamp" column's Data type from "Single" to "String", it will also train failed with this error message.

Set all non label/user/item columns as "Ignore" for recommendation scenario. Same for Forecasting scenario AND Text Classification.

This issue isn't completely fixed.

Set all non label/user/item columns as "Ignore" for recommendation scenario. Same for Forecasting scenario. - this issue is the last item pending.

The bug has been fixed on the latest main build: 16.14.2.2306101

Recommendation:

Text classification:

authors: beccamc luisquintanilla v-Hailishi


text:
(String version, VersionResult& result)    at System.Version.Parse(String input)    at System.Version..ctor(String version)    at Microsoft.ML.ModelBuilder.Utils.Utilities.InstalledVersionNeedsUpdate(String installedString, String requestedString)    at Microsoft.ML.ModelBuilder.Utils.Utilities.d__17.MoveNext() --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    at Microsoft.ML.ModelBuilder.ViewModels.TrainViewModel.d__105.MoveNext() --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at System.Runtime.CompilerServices.TaskAwaiter.GetResult()    at Microsoft.ML.ModelBuilder.ViewModels.TrainViewModel.d__104.MoveNext()

System Information (please complete the following information):

Model Builder Version (available in Manage Extensions dialog):
Visual Studio Version

Describe the bug

On which step of the process did you run into an issue:
Clear description of the problem:

To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.

#2752


text:
In Razor editor pressing Shift Enter after method declaration should insert { } as it does in .cs editor.

This issue has been moved from a ticket on Developer Community.

In Razor editor pressing Shift Enter after method declaration in @code block should insert curly braces { } as it does in .cs editor.
Example:
In file.razor:
@code {
void SomeMethod() [ pressing Shift-Enter here should insert { } and place cursor inside ]
}

Original Comments
Feedback Bot on 12/05/2022, 07:09 PM:
(private comment, text removed)

Original Solutions
(no solutions)

Duplicate of https://github.com/dotnet/razor-tooling/issues/5786

@DoctorKrolic you're awesome, yes it is! Closing this as dupe

authors: DoctorKrolic NTaylorMullen vsfeedback

repo: dotnet/razor-tooling


text:
Re-generate VS Code grammar tests

Summary of the changes

Re-generate the snapshot used for VS Code grammar tests

Fixes:
This:
Snapshot Summary
 › 116 snapshots failed from 1 test suite. Inspect your code changes or run `yarn test -u` to update them.

Test Suites: 1 failed, 1 total
Tests:       116 failed, 166 passed, 282 total
Snapshots:   116 failed, 166 passed, 282 total
Time:        3.529s
Ran all test suites.

Most of the changes were either adding missing trailing whitespace (I suspect someone manually saved the file with "Trim Trailing Whitespace" enabled) or adding source.cs from #3602.
I have a feeling these tests aren't being run by CI...

I have a feeling these tests aren't being run by CI...

Okay so they're "run":

But I don't actually see them getting run. Those tests on L235+ are from Microsoft.AspNetCore.Razor.VSCode.Test.
The CI output seems like it's multi-threaded so I'm having a hard time figuring out what actually comes after L234. I don't see another $ jest line anywhere.


text:
Delete HtmlCSharp handlers, server, and other unused files

Fixes https://github.com/dotnet/razor/issues/7876
Fixes https://github.com/dotnet/razor/issues/6978
Note about https://github.com/dotnet/razor/issues/6978. That issue says "remove feature flags" and this PR removes the feature flags, but it does not remove the feature option in our code, since we still need that to differentiate client capabilities. Some of the names could be cleaned up now though, as "single server" doesn't make much sense. Will leave that for later though.
Commit-by-commit review suggested if you want to see what the actual changes were. They're pretty minimal, but there is a lot of renames and moves, which GitHub may choose to show as large diffs.

since it always return true

Only for VS and VS Mac. OmniSharp doesn't support it, and the new C# extension specifies things on the command line, so it's in charge (though thats another thing to clean up one day I think)

since it always return true

Only for VS and VS Mac. OmniSharp doesn't support it, and the new C# extension specifies things on the command line, so it's in charge (though thats another thing to clean up one day I think)

oops yup, you're right. I was doing commit by commit and lost track of which file I was looking at.

authors: davidwengier ryzngard

repo: dotnet/razor


text:
Incremental build of the Project System is broken

In post-dev15, incremental build of the repo via build.cmd is broken, resulting in long builds.
tag @srivatsn

Looks like the generated assembly info is always being regenerated:
20:02:06.171  9:25>CoreGenerateAssemblyInfo: (TargetId:235)
                   Added Item(s):
                       AssemblyAttribute=
                           System.Reflection.AssemblyFileVersionAttribute
                                   _Parameter1=42.42.42.42
                   Added Item(s):
                       AssemblyAttribute=
                           System.Reflection.AssemblyInformationalVersionAttribute
                                   _Parameter1=1.0.0
                   Added Item(s):
                       AssemblyAttribute=
                           System.Reflection.AssemblyProductAttribute
                                   _Parameter1=Metadata
                   Added Item(s):
                       AssemblyAttribute=
                           System.Reflection.AssemblyTitleAttribute
                                   _Parameter1=Metadata
                   Added Item(s):
                       AssemblyAttribute=
                           System.Reflection.AssemblyVersionAttribute
                                   _Parameter1=42.42.42.42
                   Removed Item(s): Compile=E:\project-system\bin\obj\Metadata\Release\GeneratedAssemblyInfo_42.42.42.42.cs
20:02:06.173  9:25>Done building target "CoreGenerateAssemblyInfo" in project "Metadata.csproj".: (TargetId:235)
20:02:06.173  9:25>Target "GenerateAssemblyInfo: (TargetId:236)" in file "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.GenerateAssemblyInfo.targets" from project "E:\project-system\src\Dependencies\Metadata\Metadata.csproj" (target "CoreCompile" depends on it):
20:02:06.173  9:25>Done building target "GenerateAssemblyInfo" in project "Metadata.csproj".: (TargetId:236)
20:02:06.173  9:25>Target "CoreCompile: (TargetId:237)" in file "C:\Users\davkean\.nuget\packages\Microsoft.Net.Compilers\2.0.0-rc2-61102-09\tools\Microsoft.CSharp.Core.targets" from project "E:\project-system\src\Dependencies\Metadata\Metadata.csproj" (target "Compile" depends on it):
                   Building target "CoreCompile" completely.
                   Input file "E:\project-system\bin\obj\Metadata\Release\GeneratedAssemblyInfo_42.42.42.42.cs" is newer than output file "E:\project-system\bin\obj\Unused\Release\Metadata.xml".

maybe that's a red herring, looks like Editors is a big cause of it:
Target "CoreCompile: (TargetId:1606)" in file "C:\Users\davkean\.nuget\packages\Microsoft.Net.Compilers\2.0.0-rc2-61102-09\tools\Microsoft.VisualBasic.Core.targets" from project "E:\project-system\src\Microsoft.VisualStudio.Editors\Microsoft.VisualStudio.Editors.vbproj" (target "Compile" depends on it):
Building target "CoreCompile" completely.
Input file "E:\project-system\bin\obj\Microsoft.VisualStudio.Editors\Release\CoreCompileInputs.cache" is newer than output file "E:\project-system\bin\obj\Microsoft.VisualStudio.Editors\Release\Microsoft.VisualStudio.Editors.xml".
Added Item(s): AdditionalFileItems=PublicAPI
Using "Vbc" task from assembly "C:\Users\davkean\.nuget\packages\Microsoft.Net.Compilers\2.0.0-rc2-61102-09\build\..\tools\Microsoft.Build.Tasks.CodeAnalysis.dll".
Task "Vbc" (TaskId:863)

E:\project-system\bin\obj\Microsoft.VisualStudio.Editors\Release\CoreCompileInputs.cache doesn't exist on disk after the build, and looks like Editors is building over and over again.

Looks like both Editors and Manager always have their compile cache regenerated:

And then at the end of the build these are deleted, I cannot see any deletes for this file in the log. :(

Looking at the log no idea what's going on.
@rainersigwald What's the best way to figure out why a CoreCompileCache is being regenerated, and then deleted at the end of a build?

This is related to the fact we're pulling in Microsoft.Net.Compilers - removing it prevents these cache files from being regenerated.

This issue was moved to Microsoft/msbuild#1757

repo: dotnet/roslyn-project-system


text:
DotNet core sdk needs to return information on how to run the application

The data needs to be statically retrieved and should include

The executable to run (the IDE will be responsible for determining the path to dotnet.exe and deal with x86/x64 versions.
Command line arguments
Whether it is using the desktop or dotnet core debug engines

See https://github.com/dotnet/sdk/issues/98


text:
Cleanup obsolete src/SourceBuild/tarball/content/patches directory

The src/SourceBuild/tarball/content/patches directory was moved out of the tarball to src/SourceBuild/tarball/patches in 6.0.1xx.  During the merging of source between branches, the directory was not deleted from main and release/6.0.2xx.  These directories should be removed so they are not included in the tarball.

git doesn't track empty directories, so this seemed surprising. Turns out, that./src/SourceBuild/tarball/content/patches is not empty in main:
$ git checkout main
Switched to branch 'main'
Your branch is up to date with 'upstream/main'.
$ git rev-parse HEAD
f6e5b9ab0ea55d046242b82d591a9791cc557aa3
$ find ./src/SourceBuild/tarball/content/patches
./src/SourceBuild/tarball/content/patches
./src/SourceBuild/tarball/content/patches/aspnetcore
./src/SourceBuild/tarball/content/patches/aspnetcore/0005-Add-installer-artifacts-to-source-build-intermediate.patch
./src/SourceBuild/tarball/content/patches/runtime
./src/SourceBuild/tarball/content/patches/runtime/0001-Conditionally-build-allconfigurations.patch
./src/SourceBuild/tarball/content/patches/sdk
./src/SourceBuild/tarball/content/patches/sdk/0004-Add-toolset-zip-as-source-build-intermediate.patch
./src/SourceBuild/tarball/content/patches/sdk/0004-Disable-CA1416-for-ProcessExtensions.patch

What should we do with these patches? Move them to tarball/patches or drop them?
release/6.0.1xx doesn't have this directory in my checkout. (git doesn't version-control it if it's empty)
$ git checkout release/6.0.1xx
Already on 'release/6.0.1xx'
Your branch is up to date with 'upstream/release/6.0.1xx'.
$ git rev-parse HEAD
11ef768a808c6540426c83477c859326d0992f89
$ find ./src/SourceBuild/tarball/content/patches
find: ‘./src/SourceBuild/tarball/content/patches’: No such file or directory$ find -iname patches
./src/SourceBuild/tarball/patches

Same for release/6.0.2xx:
$ git checkout release/6.0.2xx
Branch 'release/6.0.2xx' set up to track remote branch 'release/6.0.2xx' from 'upstream'.
Switched to a new branch 'release/6.0.2xx'
$ git rev-parse HEAD
3e5cca8743e9cba967544280f1967f8f6346efda
$ find -iname patches
./src/SourceBuild/tarball/patches

@omajid - These patches were all backported.  They simply didn't get deleted during when 6.0.1xx changes were merged into main.  I mis-spoke about the patches existing in release/6.0.2xx.

authors: MichaelSimons omajid

repo: dotnet/source-build


text:
Provide a script to remove all checked binaries from your local environment

This is needed to support distro-maintainers who have policies the prohibit checked-in binaries.  See https://github.com/dotnet/source-build/issues/4088 for additional details.
The existing binary detector tool/test may be useful in detecting which binaries to strip.

Do we need any binaries for SB at all? I'm currently thinking that this script will remove all checked in binaries of types .dll, .Dll, .exe, .mdb, .nupkg, .pbd, .tgz, .zip, regardless of the binaries in the allowed list. The allowed list will only be used for the non-sourcebuild builds in this case.

Per https://github.com/dotnet/installer/pull/18563#discussion_r1486476087, the direction of this work has changed.
We will now have a separate list of files/patterns that should be deleted with a provided script. This list will be easily parseable in bash. The list will be located in each repo, and if that repo has submodules, then the exclusion file 'speaks' for the inlined submodules. The binary check keys off this in repo legs, and the exclusion script just reads patterns from the file to delete. This binary check will also check for any additional binaries not in the list. This work should be completed alongside https://github.com/dotnet/source-build/issues/4108
As such, the work for this issue will be part of building up the binary removal and validation infra in Arcade.

authors: MichaelSimons ellahathaway


text:
LicenseScan Tests failing for runtime repo

Failing build (internal Microsoft link):
"files": [
  {
    "path": "src/mono/browser/runtime/package-lock.json",
    "detected_license_expression": "mit AND apache-2.0 AND bsd-new AND bsd-simplified AND python AND lgpl-3.0"
  },

Related to https://github.com/dotnet/runtime/pull/103639/files#diff-dc8a990f55517fbcdeb08a4d6890e6dc9a5936b08a9353c65847a494e2a22ee4
Licenses.runtime.json
UpdatedLicenses.runtime.json
scancode-results.json

I was wondering why the PR Creator did not publish these test results, and I discovered that it's failing to install the .NET SDK. The errors in the tool when installing the SDK are also showing up in this SBRP PR.

SBRP PR failures (internal Microsoft link)
PR Creator tool failures (internal Microsoft link)

I opened https://github.com/dotnet/source-build/issues/4490 in response to this.


text:
Colorization does not handle @$

Issue Description
$@ strings are correctly recognized as multi-line interpolated string literals, but @$ strings are not.
Steps to Reproduce
Make a string with @$, put some escaped braces in it ({{ and }}), and type between them. They will be recognized and colorized as if they were in a regular block.
Logs
OmniSharp log
Post the output from Output-->OmniSharp log here
C# log
Post the output from Output-->C# here
Environment information
VSCode version: 1.43.0
C# Extension: 1.21.13
Mono Information
        OmniSharp using built-in mono
Dotnet Information
.NET Core SDK (reflecting any global.json):
 Version:   3.1.102
 Commit:    573d158fea
Runtime Environment:
OS Name:     arch
OS Version:
OS Platform: Linux
RID:         linux-x64
Base Path:   /usr/share/dotnet/sdk/3.1.102/
Host (useful for support):
Version: 3.1.2
Commit:  916b5cba26
.NET Core SDKs installed:
3.1.102 [/usr/share/dotnet/sdk]
.NET Core runtimes installed:
Microsoft.NETCore.App 3.1.2 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download

Visual Studio Code Extensions

Extension
Author
Version

auto-close-tag
formulahendry
0.5.6

auto-rename-tag
formulahendry
0.1.1

azure-account
ms-vscode
0.8.8

azure-pipelines
ms-azure-devops
1.165.1

code-settings-sync
Shan
3.4.3

cpptools
ms-vscode
0.26.3

csharp
ms-dotnettools
1.21.13

EditorConfig
EditorConfig
0.14.4

gitignore
codezombiech
0.6.0

gitlens
eamodio
10.2.1

language-haskell
justusadam
2.7.0

ocean-dark-extended
kleber-swf
1.5.0

path-intellisense
christian-kohler
1.4.2

powershell
ms-vscode
2020.3.0

remote-ssh
ms-vscode-remote
0.50.0

remote-ssh-edit
ms-vscode-remote
0.50.0

vim
vscodevim
1.13.0

vscode-hexdump
slevesque
1.7.2

vscode-icons
vscode-icons-team
10.0.0

vscode-il
soltys
0.0.1

vscode-pull-request-github
GitHub
0.14.0

vsonline
ms-vsonline
1.0.1736

xml
DotJoshJohnson
2.5.0

Closing as this was fixed in the textmate grammar.

repo: dotnet/vscode-csharp


text:
Go to type definition does not work

Issue Description
Clicking with cntrl on some of symbols (names) does not produce any effect. I also get warn message in OmniSharp Log output saying "No symbol found".
Steps to Reproduce
In c# code click with cntrl on any name - it should open file. Nothing would happen and warning would be logged. Then if that file opened manually (by searching it using cntrl+P , then after returning back to original file - the same operation works as expected.
Expected Behavior
Code navigation should work without opening files previously (otherwise it does not really make much sense).
Actual Behavior
Have to preopen the file to be able to navigate to it later. If try to navigate to class in previously unopened file, it would only produce warn message.
Logs
OmniSharp log
    No symbol found. File: /home/.../MyClass.cs, Line: 58, Column: 75.

C# log
there is nothing in this log
Environment information
VSCode version: 1.74.2
C# Extension: 1.25.4
Mono Information
        OmniSharp using mono: 6.12.0
Dotnet Information
Found dotnet version 3.1.422. Minimum required version is 6.0.100.
Note: I cannot use any versions newer than 3, this is our project requirement. I have disabled modern flag in configuration though, so I expect mono to work.

Visual Studio Code Extensions

Extension
Author
Version

azure-account
ms-vscode
0.11.3

azure-iot-edge
vsciot-vscode
1.25.11

azure-iot-toolkit
vsciot-vscode
2.17.1

azure-iot-tools
vsciot-vscode
0.3.0

cloudformation-yaml-snippets
dannysteenman
3.93.0

csharp
ms-dotnettools
1.25.4

git-compose
git-compose
0.5.3

gitlens
eamodio
13.2.0

gnuplot
fizzybreezy
0.1.3

gnuplot
mammothb
1.0.5

multi-command
ryuta46
1.6.0

prettier-vscode
esbenp
9.10.4

remote-containers
ms-vscode-remote
0.266.1

remote-explorer
ms-vscode
0.0.3

remote-ssh
ms-vscode-remote
0.94.0

remote-ssh-edit
ms-vscode-remote
0.84.0

remote-wsl
ms-vscode-remote
0.72.0

rust-analyzer
rust-lang
0.3.1386

search-json-path
guilhermeavanci
0.0.5

sqltools
mtxr
0.27.1

sqltools-driver-mssql
mtxr
0.4.1

sqltools-driver-mysql
mtxr
0.5.1

terraform
hashicorp
2.25.2

vscode-azurefunctions
ms-azuretools
1.9.0

vscode-azureresourcegroups
ms-azuretools
0.5.6

vscode-drawio
hediet
1.6.6

vscode-eslint
dbaeumer
2.2.6

vscode-iot-device-cube
vsciot-vscode
0.3.0

vscode-iot-workbench
vsciot-vscode
0.16.0

vscode-remote-extensionpack
ms-vscode-remote
0.23.0

vsliveshare
ms-vsliveshare
1.0.5823

A lot has changed with O# since this issue was opened. If you are still having problems, please open a new issue at https://github.com/omnisharp/omnisharp-roslyn/issues

authors: JoeRobich strowk


text:
create APP

URL
https://dotnet.microsoft.com/zh-cn/learn/dotnet/hello-world-tutorial/create
Operating system
windows
More information about your system
X64
Description
During step 6 of creating the application, there was a problem naming the item MyConsoleApp in the command panel
dotnet --info

It seems that the .NET SDK installation was unsuccessful on the previous step.
How are you trying to install the .NET SDK? Have you tried changing the timeout value?

repo: dotnet/website-feedback


text:
array_position  does not exist

字符串数组过滤报错
linq : .Where(t => arr.Contains(t.Name))
sql : WHERE array_position(@__arr_0, NULL) IS NOT NULL))
fail: Microsoft.EntityFrameworkCore.Query[10100]
An exception occurred while iterating over the results of a query for context type 'Server.Data.AppDb'.
GaussDB.PostgresException (0x80004005): 42883: function array_position(text[], unknown) does not exist
### Tasks
- [ ] https://github.com/dotnetcore/EntityFrameworkCore.GaussDB/issues/3

哪个版本？6.x or 8.0？

openGauss 5.0
Efcore 8

有环境没，我手头没有环境了，没法做验证测试

经确认，高斯基于pg9.2低版本，函数【array_position】不存在，最近将会修复此问题

该问题已修复，请更新至8.0.1版本哈再验证看看，确认ok后我再关闭issue @xyun52

license: PostgreSQL


text:
🛑 JustBlameBen4Everything is down

In 6bb48fe, JustBlameBen4Everything (https://justblameben4everything.site) was down:

HTTP code: 0
Response time: 0 ms

Resolved: JustBlameBen4Everything is back up in 1678a23.

repo: dougdragon/uptime


text:
Top Salary Request Filtered to CS Classification

When I query https://ps-salary-data.vercel.app/api/top - Only the 5x CS classifications are available. Thanks a lot for this Doug - another small suggestion would be to include in the description some sense of how you pull the data/and confidence whether this can be relied upon for continual updates.
Cheers from DND

Thanks for catching that!  Will get that one fixed.
And a great suggestion on adding how it was collected too.  All scraped from the website. In an ideal world we would have it accessible as a dataset from something like open.Canada.ca but after going through it myself I can understand how having a 100% complete set would be difficult to obtain within a single data model.
There are a lot of complexities around the edges of classifications.
Can definitely be achieved but will break the simplicity of this MVP.
Really appreciate the comments

authors: JamesLeGres dougkeefe

repo: dougkeefe/ps-salary-data


text:
Fixing squid: S1148 Throwable.printStackTrace(...) should not be called

This pull request is focused on resolving occurrences of Sonar rule
squid:S1148 - “Throwable.printStackTrace(...) should not be called”.
You can find more information about the issue here:
https://dev.eclipse.org/sonar/rules/show/squid:S1148
Please let me know if you have any questions.
Fevzi Ozgul

I wonder why this has caused a conflict . I suppose you did not have a chance to look at the problem. Thank you for your feedback in advance.
Fevzi Ozgul

repo: dounine/clouddisk


text:
Extend Timeout and Keep Alive for SPARQL::Client

Some of our more intensive SPARQL Queries for reports take on the order of two minutes for Marmotta to query and build the response. This keeps SPARQL::Client from timing out on these queries.

Hold on this. Apparently 360 seconds isn't long enough. :/

repo: dpla/KriKri


text:
🛑 File Service is down

In 201d2e9, File Service (https://files.dplayzgames06.tk) was down:

HTTP code: 530
Response time: 1372 ms

Resolved: File Service is back up in 588b7ad after 11 minutes.

repo: dplayz/status


text:
🛑 Static Link Service is down

In abd0137, Static Link Service (https://diipii.tk) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Static Link Service is back up in b1a220f.


text:
往logging_output写日志时导致内存泄露问题

在模型训练过程发现内存（非显存）泄露问题，现象为随着训练轮次增加内存一直往上涨，最后定位到原因是在损失类里如下语句导致
logging_output = {
"loss": loss,
}
改为
logging_output = {
"loss": loss.data
}
问题：为何少加了.data，会导致内存泄露呢？
不加.data，reduce_metrics收到数据为
outputs [{'sample_size': 1, 'loss': tensor(5.6797, device='cuda:0', dtype=torch.float16,
grad_fn=)}]
加上.data为
outputs [{'sample_size': 1, 'loss': tensor(5.6797, device='cuda:0', dtype=torch.float16,)}]
看起来是不加.data，多了个grad_fn（激活函数？）导致，为何？

请问你上述说的错误的代码是在哪个文件的第几行， 我现在训练蛋白-小分子复合体生成任务中的logging_output已经加了loss.data, 但是内存依旧随着训练轮次增加内存一直往上涨。请问你有和我一样的现象么

我那错误是自己写的损失类代码里，忘了加loss.data导致的，unimol本身代码没问题

@.>
时间： 2024年6月2日 (周日) 20:55
主题： Re: [dptech-corp/Uni-Mol] 往logging_output写日志时导致内存泄露问题 (Issue #173)
@.>
@.>, @.>
请问你上述说的错误的代码是在哪个文件的第几行， 我现在训练蛋白-小分子复合体生成任务中的logging_output已经加了loss.data, 但是内存依旧随着训练轮次增加内存一直往上涨。请问你有和我一样的现象么
—
Reply to this email directly, view it on GitHubhttps://github.com/dptech-corp/Uni-Mol/issues/173#issuecomment-2143842359, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BDSF446OBSCGQACMKI5ET7TZFMI5NAVCNFSM6AAAAAA6TA6VRWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBTHA2DEMZVHE.
You are receiving this because you authored the thread.[image: https://github.com/notifications/beacon/BDSF443FDJHNXWCHBU7NWVLZFMI5NA5CNFSM6AAAAAA6TA6VRWWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTT7ZBYDO.gif]Message ID: @.***>
[image]

authors: smxzhangxiaaobo zhuhui-in

repo: dptech-corp/Uni-Mol


text:
Improve holidays.constants multi-line import sorting

Keep week days and months multi-line imports ordered according to the date/time context (which is more readable taking into account the nature of python-holidays package).
I would have dreamt to see those holidays.constants multi-line import move to the isort format (definitely nicer and more readable than the black's version).
Originally posted by @dr-prodigy in https://github.com/dr-prodigy/python-holidays/issues/722#issuecomment-1268560210

Pls see #734 for possible further improvements.. thx!

Yep, will do! I appreciate your suggestions!

Closing as obsolete.

repo: dr-prodigy/python-holidays


text:
2.1 version topic name not used

Fresh vanilla install, installed this mod
Enabled mod, settings as default.
Welcome to SMF topic
?topic=1.0
the title/description
 - page 1 - General Discussion - My Community

Appears to relate to Subs-Optimus.php line 282
"{topic_name}" => $topicinfo['subject'],
$topicinfo['subject'] is blank.

Subs-Optimus.php line 282
"{topic_name}" => $topicinfo['subject'],
replace the
"{topic_name}" => $context['topicinfo']['subject'],

authors: Yariksat bensene

repo: dragomano/Optimus


text:
bugfix: add a piece handler API for supernode

Ⅰ. Describe what this PR did
related PR #582
Ⅱ. Does this pull request fix one issue?

Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗？)
Added
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews

@lowzj All mentioned above have been updated. PTAL. Thanks.

repo: dragonflyoss/Dragonfly


text:
SHA256 checksum check for Oras resource client downloads.

Bug report:
Consider a user has pulled the image using the oras plugin as :
dfget -u oras://hostname/image1:latest
(let us assume image as image1 and tag as latest)
let us assume a user  has made some changes in the docker file of image1 ,rebuild the image1, pushed it to the harbor registry
and tagged this newly re-build image as latest , moved the older  image which is present in the d7y cache now to tag v1 in harbor registry and dragonfly did not run the gc during this interval
now when user try to download the latest tag rebuild image using oras plugin ,then d7y won't be knowing there is a new re-build image in the harbor registry and it just serves the download request from the d7y cache which is the image1 tagged as v1 now .
Expected behavior:
SHA256 check should be enabled for every image pull through the oras plugin.
@embroede

we will recommend to check the manifest for each image pull as per the OCI registry https://github.com/opencontainers/image-spec/blob/main/manifest.md

To implement this feature, we need query very oras request with tag from registry for real-time.
Steps:

fetch metadata form registry, extract the sha256 like: example.com/public/test:latest to example.com/public/test@sha256:ba4xxx
rewrite original request with sha256 which will be sent to dfget daemon.
normal processes.


text:
Refactor scheduler

Description

Related Issue
fix #366

Motivation and Context

Screenshots (if appropriate):
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Documentation Update (if none of the other choices apply)

Checklist:

[x] Code compiles correctly.
[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

Codecov Report

Merging #369 (7481a54) into main (9af0bab) will increase coverage by 2.98%.
The diff coverage is 20.12%.

@@            Coverage Diff             @@
##             main     #369      +/-   ##
==========================================
+ Coverage   36.51%   39.49%   +2.98%
==========================================
  Files          89       81       -8
  Lines        6959     6284     -675
==========================================
- Hits         2541     2482      -59
+ Misses       4051     3441     -610
+ Partials      367      361       -6

Flag
Coverage Δ

e2etests
?

unittests
39.49% <20.12%> (+2.98%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

cdnsystem/daemon/cdn/manager.go
57.57% <ø> (+1.14%)
:arrow_up:

cdnsystem/server/service/cdn_seed_server.go
0.00% <0.00%> (ø)

client/config/peerhost.go
35.48% <ø> (ø)

client/daemon/proxy/proxy.go
7.98% <0.00%> (ø)

client/daemon/proxy/reverse_proxy.go
0.00% <0.00%> (ø)

client/daemon/service/manager.go
33.00% <ø> (ø)

internal/idgen/uuid.go
50.00% <0.00%> (-50.00%)
:arrow_down:

pkg/source/source_client.go
0.00% <0.00%> (ø)

pkg/structure/sortedlist/sorted_list.go
58.58% <ø> (ø)

scheduler/config/config.go
0.00% <0.00%> (ø)

... and 10 more


text:
[Enhancement] Translation Quest B22

I think we need to update B22 quest details. After Abukuma Kai Ni and 3-2 recent changes now you can use CL as flagship too

meanwhile our translation (taken from english translation):
"244": {
"name": "Deploy the Destroyer Division 30 (Gen-1)",
"desc": "Deploy a fleet that consists of Mutsuki (\u7766\u6708), Kisaragi (\u5982\u6708), Yayoi (\u5f25\u751f), Mochizuki (\u671b\u6708) and up to 2 additional DDs to world 3-2 and encounter the boss. C rank or above is required."
},

hmmm. are the two additional destroyers actually requirement of just hint or the wikia writer to remind readers that only DDs can sortie to it?
we'd have to base it on the in-game JP description

From Wikiwiki, it is already updated...
"「第三十駆逐隊(一次)」の4隻（「睦月」「如月」「弥生」「望月」）+他に軽巡洋艦（旗艦）・駆逐艦がいてもOK"
"Having four ships of the Destroyer Division 30 (Gen-1) (Mutsuki, Kisaragi, Yayoi, Mochizuki), plus other one (flagship) light cruiser and one destroyer are OK"

imho we should still follow in-game description rather than base it on community advice. We do offer on-screen translation and its best to translate raw.
though really, I'm haven't really done any translation to know what is acceptable mainstream, so I might be in the wrong there.

I personally agree with you, @dragonjet, too. But if the mainstream (especially the foreign ttks) is say "yes" to change it, then we need to do.

gonna close this

authors: McDohl dragonjet nicky008


text:
MuliTypeAdapter 实现TypePool接口的问题

看源码中，MuliTypeAdapter中，已经通过构造器拥有了TypePool接口的对象，为什么本身还需要实现这个接口？是有额外的扩展性考虑吗？

MuliTypeAdapter 实现了 TypePool，也就是说它本身是一个 TypePool，构造器中的 pool 只是提供一个往 MultiType put all item types from another type pool 的渠道。

就像 ArrayList 也提供了 ArrayList(Collection list) 构造函数。

authors: Dragon-Boat drakeet

repo: drakeet/MultiType


text:
Improve UX for topic navigation

A user may be confused, when following a topic link of a book detail page.
There are some ideas to mitigate this already:

Provide a anchor link to the respective section on the topic page (e.g. add #wishlist to the topic link).
Use tabbed navigation UI on the topic page (would perhaps require an anchored navigation, too).

Tried various approaches:

Anchor link from book detail page: didn't work well for short topic lists.
Tabbed navigation: idea dropped because of complexity.
Multiple columns: idea dropped because of complexity for cover and grid rendering.

Finally, a simple text at the very start, stating the amount of books in each shelf and anchor navigation for that page, as well as jump-to-start seem to be good enough for now.


text:
Mock POST request with query parameter and JSON body

The query parameter "page=2" will be missed when I try to mock as below, Am I wrong?
 {
    "request": {
      "method": "post",
      "uri": "/search?page=2",
      "headers": {
        "content-type": "application/json"
      },
      "json": {
        ...
      }
    },
    "response": {
      "headers": {
        "content-type": "application/json"
      },
      "file": "path-to/file.json"
    }
  }

Use query parameter instead

I have tried this, but same issue.
{
"request": {
"method": "post",
"uri": "/search",
"headers": {
"content-type": "application/json"
},
"quries": {
"page":"2"
}
"json": {
...
}
},
"response": {
"headers": {
"content-type": "application/json"
},
"file": "path-to/file.json"
}
}

Please make sure your other matches are correct.
If your request still does not work, you can put all of your request from your log here.

authors: dreamhead phoebusliang

repo: dreamhead/moco


text:
explicitly reuse concepts when using include

just including another sedola document should not automatically use all of the concepts in that document. instead, the including document should have to explicitly list all of those concepts that it intends to reuse. this allows to also not use concepts when they are not required and should not be considered as being used.
this could be augmented by a "include-all-concepts" attribute on  that by default is "no", but could be set to "yes", and then means that all concepts are intended to be used.

the last refactoring round changed "include" to "import" and supports more explicit reuse of concepts. instead of a blanket "include", one "import"s a service, and then specifies which concepts one is actually using. still needs to be backed up by code processing the imports, but that's the general direction.

repo: dret/sedola

license: Unlicense


text:
Unknown error, call getLastResponse() to find out what happened.

When I run this code
$list_id = '0961f7f558';

        $result = $MailChimp->post("lists/$list_id/members", [
                        'email_address' => 'myemailgoesinhere@gmail.com',
                        'status'        => 'subscribed',
                    ]);
        if ($MailChimp->success()) {
            print_r($result);
        } else {
            echo $MailChimp->getLastError();
        }

I get Unknown error, call getLastResponse() to find out what happened.
I have ran composer update and nothing seems to fix this issue.

I ran into this when testing on a local machine. I did not have the SSL CA Certificates set up on my machine correctly. Try setting SSL to false.

Thankyou very much! I was struggling for hours trying to find the solution 👍

repo: drewm/mailchimp-api


text:
Plz fix readme

Nope

repo: dreygur/arbitrage-rs


text:
Update mixins.py

we should break in function check_object_permissions where self.action is metadata  just like in function get_queryset.
otherwise, it will raise an exception while calling self._psq_get_view() which is in the next line

Hi @zshongyi, thank you for your contribution :)
Can you call return after calling super().check_object_permissions? Because this method is supposed to have no outputs and in this way, we will show that in the code.
Also, I think the same thing is needed to be performed for the two other if statements in this method.

Yes, It can work. In Python's Defining,  A function without an explicit return statement returns None.
I also debugged  with this code.
I add return here just wanting to break this function to resolve exception what is i met up with. so I don't consider so much the following if statement.
Your suggest is better. Even if the code has no logical impact.

So, please use this version if you don't mind:
    def check_object_permissions(self, *args, **kwargs):
        if self.action == 'metadata':
            super().check_object_permissions(*args, **kwargs)
            return

        view = self._psq_get_view()
        if not self._psq_check(view):
            super().check_object_permissions(*args, **kwargs)
            return

        if get_caller_name() != self.get_object.__name__:
            super().check_object_permissions(*args, **kwargs)
            return

Thank you!

Of course not.

Congratulation on your first contribution to this repo :tada:
For the last step, we need to put the changes in a single commit.
Please run the following commands. Thanks!
git checkout patch-1
git reset --hard bc86b9
** apply the changes **
git add drf_psq/mixins.py
git commit -m "Fix a bug in check_object_permissions"
git push -f origin patch-1

authors: AminHP zshongyi

repo: drf-psq/drf-psq