-
Notifications
You must be signed in to change notification settings - Fork 558
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to resolve 'dotnet-svcutil (>= 0.5.10306-preview)' for '.NETCoreApp,Version=v1.1' #1813
Comments
Same issue to #1807? |
This issue is reported by a different customer(Sinoheh Enayati) on the download page. It could be same issue. Waiting for Sinoheh confirmation to see if it needs further investigation. |
I just received this same error. [3/21/2017 6:41:30.073 AM] Adding WCF Service - Preview to the project. Errors in C:\Users\pennerg\AppData\Local\Temp\WCFConnectedService\2017_Mar_21_06_41_30\svcutil_bootstrap\project.csproj NuGet Config files used: Feeds used: Failed to generate service reference. I am using Visual Studio 2017 Enterprise on Windows 7 |
@gregp55305 Could you check the below Nuget.Config file to see if package resource 'local' is disabled machine wise? c:\Users\pennerg\AppData\Roaming\NuGet\NuGet.Config If so, you can workaround the issue by rename the disabled 'local' package source. Please let me know if it helps, |
I don't see a package source called 'local' in either of those config files. Here are the contents of both of those config files: NuGet.Config: Microsoft.VisualStudio.Offline.Config: |
Hmm the contents of the config files didn't paste... NuGet.Config:
Microsoft.VisualStudio.Offline.Config:
Sorry for the formatting... |
@gregp55305 in the C:\Users\pennerg\AppData\Local\Temp\WCFConnectedService\2017_Mar_21_06_41_30\svcutil_bootstrap\NuGet.Config, could you check if dotnet-svcutil.0.5.10306-preview.nupkg exists in the 'local' package source path? |
@gregp55305 I noticed that you global Nuget config file specify only one active package resource. This might cause package not found problem according to http://docs.myget.org/docs/how-to/nuget-configuration-inheritance. Could you change it to below:
Thanks, |
I'll check that when I get back to work tomorrow. Would it be possible for you to post an example of a global Nuget config file or does that not make sense? |
This is what on my machine. Be aware of that I do not use activePackageSource.
|
You have referred to a 'local' package source a couple of times, what exactly does that mean? |
@gregp55305 We uses this name in our bootstrap tool, you can see an example in C:\Users\pennerg\AppData\Local\Temp\WCFConnectedService\2017_Mar_21_06_41_30\svcutil_bootstrap\NuGet.Config |
I updated the activePackageSource value to what you suggested and then closed out of all instances of Visual Studio. I also located the nuget.config file with the 'local' reference and confirmed the path for the packageSource in that file does exist. Then restarted VS 2017, but the end result was the same when trying to generate connected wcf service. |
@gregp55305 I'm sorry to hear that you are still hitting the issue.
Let me know if step 3) succeeded for you. Thanks, |
step 3 did succeed. I assume that you wanted me to run dotnet restore from the project root directory. |
Or did I need to run that from the svcutil_bootstrap directory? |
I ran 'dotnet restore' from the svcutil_bootstrap directory. That failed. The message is familiar. "Unable to resolve 'dotnet-svcutil ()= 0.5.10306-preview' for '.NETCoreApp,Version=v1.1 |
This looks like a nuget problem. There is one more thing you can try.
|
Progress, but no success: Received another error: `[3/22/2017 1:47:35.233 PM] Adding WCF Service - Preview to the project. Failed to generate service reference. |
Great to hear it work around the Nuget issue! For the new issue you hit, it looks like your service requires a feature .dotnet core does not support yet, such as message security. See a similar issue in #1354 |
The service does require credentials to be supplied, is that what you mean? |
Yes. The tool does not support generating authenticated client yet. |
So, can you explain what the nuget issue was? I am running the latest version of that. |
I don't actually know exactly what the nugget issue was. It has to do with how nuget resolve paths in nuget configuration inheritance. It seems |
We have a workaround for the original customer issue. |
Dear, is it possible to provide us more information about the workaround, having the same issue here. |
Scaffolding Code ...
Error:Error: Restoring packages for C:\Users\Administrator\AppData\Local\Temp\WCFConnectedService\2017_Mar_17_20_34_33\svcutil_bootstrap\project.csproj...
Restoring packages for C:\Projects\WorkSpace\Nic\Server API\ServerAPI\ServerAPI\ServerAPI.csproj...
Restoring packages for C:\Projects\WorkSpace\Nic\Server API\ServerAPI\ViewModelCore\ViewModelCore.csproj...
Restoring packages for C:\Projects\WorkSpace\Nic\Server API\ServerAPI\DbModelCoew\ModelCore.csproj...
Lock file has not changed. Skipping lock file write. Path: C:\Projects\WorkSpace\Nic\Server API\ServerAPI\ViewModelCore\obj\project.assets.json
Restore completed in 871.15 ms for C:\Projects\WorkSpace\Nic\Server API\ServerAPI\ViewModelCore\ViewModelCore.csproj.
Lock file has not changed. Skipping lock file write. Path: C:\Projects\WorkSpace\Nic\Server API\ServerAPI\DbModelCoew\obj\project.assets.json
Restore completed in 1.25 sec for C:\Projects\WorkSpace\Nic\Server API\ServerAPI\DbModelCoew\ModelCore.csproj.
C:\Program Files\dotnet\sdk\1.0.0\NuGet.targets(97,5): error : Unable to resolve 'dotnet-svcutil (>= 0.5.10306-preview)' for '.NETCoreApp,Version=v1.1'. [C:\Users\Administrator\AppData\Local\Temp\WCFConnectedService\2017_Mar_17_20_34_33\svcutil_bootstrap\project.csproj]
Lock file has not changed. Skipping lock file write. Path: C:\Projects\WorkSpace\Nic\Server API\ServerAPI\ServerAPI\obj\project.assets.json
Restore completed in 3 sec for C:\Projects\WorkSpace\Nic\Server API\ServerAPI\ServerAPI\ServerAPI.csproj.
Generating MSBuild file C:\Users\Administrator\AppData\Local\Temp\WCFConnectedService\2017_Mar_17_20_34_33\svcutil_bootstrap\obj\project.csproj.nuget.g.props.
Generating MSBuild file C:\Users\Administrator\AppData\Local\Temp\WCFConnectedService\2017_Mar_17_20_34_33\svcutil_bootstrap\obj\project.csproj.nuget.g.targets.
Writing lock file to disk. Path: C:\Users\Administrator\AppData\Local\Temp\WCFConnectedService\2017_Mar_17_20_34_33\svcutil_bootstrap\obj\
The text was updated successfully, but these errors were encountered: