microsoft/botframework-components

Bot Composer Framework can't create new projects if NuGet.Config refers to a local folder

Hedva opened this issue · 4 comments

Hedva commented

Describe the bug

Bot Composer Framework can't make a new project if NuGet.Config refers to a local folder

Version

Bot Composer Framework 2.1.2

To Reproduce

  1. NuGet.Config contains a reference to local folder
  2. Bot Composer Framework can't make new projects

Expected behavior

I expect Bot Composer Framework not to care about local package source folders

Screenshots

buildfail

Additional context

I had some problems creating a new Bot Composer Framework.
When I removed the reference of Microsoft Visual Studio Offline Packages, it worked.

NuGet.Config location: C:\Users\YourNameHere\AppData\Roaming\NuGet\NuGet.Config

This doesn't work:

<packageSources>
    <add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
    <add key="Microsoft Visual Studio Offline Packages" value="C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\" /> 
</packageSources>

This does work:

<packageSources>
    <add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
    <!-- <add key="Microsoft Visual Studio Offline Packages" value="C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\" /> -->
</packageSources>

Thanks for reporting this issue @Hedva. I'm investigating.

Hi @Hedva,

I'm not able to reproduce this issue.

In C:\Users\YourNameHere\AppData\Roaming\NuGet\NuGet.Config file, I added the following local package source:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
    <add key="Local" value="C:\Users\{NameHere}\Downloads\Microsoft.NuGet.CredentialProvider" />
+    <add key="Microsoft Visual Studio Offline Packages" value="C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\" />
  </packageSources>
</configuration>

With the above changes to NuGet.Config, I'm able to create new composer bot projects and run without issues.
image

@Hedva, perhaps I missed something? Should I attempt other reproducible steps to replicate this issue?

Closing due to inactivity. @Hedva, please re-open if needed.