nuget
11 TopicsTool or approach to identify and replace obsolete .NET Framework APIs during migration to .NET 8
I'm in the process of migrating a solution containing multiple projects from .NET Framework 4.8 to .NET 8. After running the migration using the Upgrade Assistant, I encountered several issues where APIs used in the original codebase are either obsolete or no longer available in .NET 8. For instance, System.IO.DirectoryInfo.FullName is flagged as unsupported. There are many such .NET Framework level APIs which cannot be migrated, listed below here.. Is there a tool or approach that can help automatically identify and replace these obsolete .NET Framework APIs with their modern equivalents in .NET 8? Ideally, I’m looking for a solution that can work across multiple projects to streamline the migration process. Any guidance, tools, or best practices would be greatly appreciated! I tried upgrading each project in my solution using upgrade assistant tool, however most of the projects were set to .NET Standard 2.0 instead of migrating to .net8. On further analysis, it was found that as the libraries/APIs which these projects are dependent on are not supported in .NET8 or are obsolete. In order to migrate these projects to .net8, first the libraries/APIs needs to be fixed or replaced with versions which are supported by .net8.38Views0likes0CommentsInstall-Package - failed to be installed: End of Central Directory record could not be found.
Hi all, Since last week I've had multiple errors in my pipelines when trying to install NuGet packages: Install-Package -Name Microsoft.PowerBi.Api -Source MyNuGet -ProviderName NuGet -Scope CurrentUser -RequiredVersion 3.18.1 -SkipDependencies This seems to be affecting multiple packages: Install-Package : Package Newtonsoft.Json failed to be installed because: End of Central Directory record could not be found. Install-Package : Package Microsoft.Rest.ClientRuntime failed to be installed because: End of Central Directory record could not be found. Install-Package : Package Microsoft.PowerBI.Api failed to be installed because: End of Central Directory record could not be found. When downloading the package I don't see any errors using nuget verify. I get these errors in microsoft hosted agents in ADO pipelines, on my laptop, or any VM I use. Doesn't seem to be related to PS or OS version or any proxies/firewalls. Any ideas? Thank you330Views1like0CommentsAzure Developers - .NET Day 2023
Experience Cloud Computing in Full Force with .NET on Azure. See the full agenda: https://learn.microsoft.com/events/learn-events/azuredeveloper-dotnetday/ As a .NET developer building for the cloud, do you want to stay ahead of the curve and maximize your potential? Join us to discover the latest services and features in Azure designed specifically for .NET developers. You'll learn cutting-edge cloud development techniques that can save you time and money, while providing your customers with the best experience possible. During the event, you'll hear directly from the experts behind the most sought-after cloud services for developers, spanning app development/compute, data services, serverless computing, cloud-native computing, and developer productivity. Don't miss this chance to participate and engage with the team throughout the day. Join us and take your cloud development skills to the next level! #azure #azuredevelopers #azurefunctions #azurecontainerapps #azuredevcli1.4KViews0likes0CommentsBuilding OSS projects with C# and .NET
Register: https://developer.microsoft.com/reactor/eventregistration/register/14996 Join us on Thursday December 2nd for an engaging discussion with contributors to open-source software (OSS) projects being built and maintained in C# and .NET. Led by Claire Novotny, our event host and Senior Program Manager on the .NET team at Microsoft, this conversation-style event will feature contributors from two OSS projects: Andres Pineda from Uno Platform and David Paquette from Humanitarian Toolbox. https://github.com/unoplatform https://github.com/htbox You’ll learn about the goals and status of these OSS projects, dive into the technology used to build and maintain them while relying on a distributed team of developers, and discover some lessons learned from experiences contributing to the creation of open-source software. Do you have any questions for the group to address during this conversation? Please use this form to submit your questions before midnight PT on Tuesday November 30: https://aka.ms/OSSQuestions Speakers: Claire Novotny, Senior Program Manager at Microsoft Andres Pineda, Senior Software Engineer at Shopify Andres is a Software Developer with a passion for Mobile Technologies. He is part of different developer communities where he collaborates in different ways (coding, mentoring, hosting events, speaking, etc). In his free time, he enjoys working out, playing a video game, or just chilling out watching a tv show. David Paquette, Senior Software Engineer at Microsoft3.5KViews0likes0CommentsWord: Dokument mit zwei unabhängigen Inhalten auf gegenüberliegenden Seiten
Ich möchte einen längeren Text in Word verfassen. Er soll zwei getrennte Texte enthalten und in Kapitel gegliedert sein. Er soll in Buchform erscheinen: - auf der linken Seite läuft eine Zeitleiste mit Jahreszahlen, die jeweils eine längere oder kürzere Erläuterung haben, - auf der rechten Seite läuft eine Erzäjöung, die ungefahr zu den Jahreszahlen auf der linken Seite passt. Das ganze Dokument soll in 7 Kapitel unterteilt sein. D.h.: Mal ist die linke Seite vielleicht mal etwas länger, mal vielleicht die rechte, aber beim nächsten Kapitel beginnen beide Seiten wieder parallel und neu. (Die Kapitelabschnitte würde ich noch hinkriegen: über Seitenumbrüch auf der linken und auf der rechten Seite. Die Seitenzählung läuft ganz normal, die Seitenränder sind sicher auch nicht das Problem.) Es ist also ein ähnliches Problem, wie wenn bei den zweisprachigen Reclam-Heften eben auch links und rechts verschiedene Inhalte stehen, die sich dennoch aufeinander beziehen und von Kapiteln getrennt sind. Titel soll wie üblich nur auf eine Seit, das Inhaltsverzeichnis kann entweder zweiseitig getrennt für jede Seite oder als gemeinsames formatiert werden. Aber das ist das geringste Problem. Hauptsache, ich bekäme eine Lösung für die beiden Texte.604Views0likes0CommentsFirebird not showing
Hello, I have downloaded Firebird packages like EntityFramework.firebird and Firebirdsql.data.firebirdclient from Nuget.Additionally , firebird odbc driver from https://firebirdsql.org/en/odbc-driver/ But Firebird not showing in Data Source Visual Studio 2019.How can I solve this?616Views0likes0CommentsNuget runtime references not copied to output in Desktop Bridge
I have a desktop bridge app, and I'm publish a self-contained project. The build target for the wapproject (Desktop Bridge) modifies the `RuntimeIdentifier` of all references to the legacy `win-x64` or `win-x86` RIDs, instead of `win10-x64` or `win10-x86`. As a result, Nuget packages with native dlls are not copied to the output directory. I have hacked my way around this by modifying the build metadata, but this could easily break in the future: ```xml <Target Name="PropsBeforeBuild" BeforeTargets="_BuildDependentProjects" AfterTargets="SetProjectReferenceProperties"> <PropertyGroup> <OriginalPublishProps>%(ProjectReferenceWithPublishProps.AdditionalProperties)</OriginalPublishProps> </PropertyGroup> <ItemGroup> <ProjectReferenceWithPublishProps> <SetConfiguration>%(ProjectReferenceWithPublishProps.SetConfiguration);RuntimeIdentifier=win10-x64</SetConfiguration> <AdditionalProperties>$(OriginalPublishProps.Replace("win-x64", "win10-x64"))</AdditionalProperties> </ProjectReferenceWithPublishProps> </ItemGroup> <Message Text="%(ProjectReferenceWithPublishProps.SetConfiguration);" /> <Message Text="%(ProjectReferenceWithPublishProps.AdditionalProperties);" /> <PropertyGroup> <RuntimeIdentifier Condition="'$(RuntimeIdentifier)' == 'win-x64' OR '$(RuntimeIdentifier)' == ''">win10-x64</RuntimeIdentifier> </PropertyGroup> </Target> ``` This works, but since the DesktopBridge target adds the modified reference (with the legacy RIDs) to `_MSBuildProjectReferenceExistent`, I get `MSB3243: No way to resolve conflict between ....` in the build output. At this point, I'm better off ditching the desktop bridge build targets entirely. Is there something I can do to resolve this?Solved1.7KViews0likes4CommentsGetting an error when trying to use Microsoft.Graph.Auth Nuget package
I'm adding some code to access Graph to an ASP.net MVC project. When I add the latest Microsoft.Graph.Auth package from Nuget I get the following error when I build: Error Unable to parse version value '1.0.0-preview.5' from 'packages.config'. The other graph libraries work fine. I've used the auth package just fine in another mvc core project. I'm using VS 2019 Enterprise. Has anyone seen this issue? Thanks2KViews0likes0Comments