Use different Nuget feed with Porting Assistant for .Net

0

hi, We are trying to use Porting Assistant for .Net within a restricted network where access to nuget.org feed to package manager is blocked. Instead we are required to use an alternate internal Nuget feed. Currently, when I run the assessment, I am unable to get proper results due to this disconnect. Is there a way to configure Porting Assistant for .Net to use alternate Nuget feed? Thanks!

Ashok
질문됨 일 년 전253회 조회
2개 답변
4

Porting Assistant for .NET does not have built-in support to configure an alternate NuGet feed

You can create a custom NuGet.config file in your solution folder with the necessary configurations pointing to your internal NuGet feed. Porting Assistant for .NET relies on the dotnet CLI tool to gather NuGet package information. By placing the custom NuGet.config file in your solution folder, the dotnet CLI will use the specified internal NuGet feed when looking for packages.

example NuGet.config

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <clear />
    <add key="InternalFeed" value="https://path-to-your-internal-nuget-feed/" />
  </packageSources>
</configuration>

profile picture
전문가
답변함 일 년 전
  • Thanks for the suggestion. I will try this.

0

https://docs.aws.amazon.com/portingassistant/latest/userguide/what-is-porting-assistant.html

Internal NuGet

Some users have an internal NuGet hosting service, similar to nuget.org, that is accessible only within their local network.

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <add key="InternalFeed" value="http://your.internal.feed/nuget" />
  </packageSources>
</configuration>

Make sure to replace InternalFeed with a name that identifies your internal NuGet feed, and http://your.internal.feed/nuget with the URL of your internal NuGet feed.

I hope the below link also helps this.

https://learn.microsoft.com/en-us/nuget/consume-packages/configuring-nuget-behavior

profile pictureAWS
nemf
답변함 일 년 전
  • Thanks for the suggestion. I will try this.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠