Skip to content
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

VS code build does not work #7

Open
Wraxq1020 opened this issue Feb 17, 2023 · 1 comment
Open

VS code build does not work #7

Wraxq1020 opened this issue Feb 17, 2023 · 1 comment

Comments

@Wraxq1020
Copy link

https://www.youtube.com/watch?v=0ubF-INE7bg
The example given for ModelGeneratorConsole does not load nor work in VScode. Additionally the .net framework used seems not to be up to date.

When trying to add the xarial.xcad.solidworks package it cannot find any available versions of said package.

Is there any way to include documentation on how to solve said issue?

I am currently running VScode 1.75.0

output from running the dotnet add package command:
PS C:\Users\name\Documents\vscode portable 1_75_0 v1> dotnet add package xarial.xcad.solidworks
Determining projects to restore...
Writing C:\Users\name\AppData\Local\Temp\tmp40EF.tmp
info : X.509 certificate chain validation will use the default trust store selected by .NET.
info : X.509 certificate chain validation will use the default trust store selected by .NET.
info : Adding PackageReference for package 'xarial.xcad.solidworks' into project 'C:\Users\name\Documents\vscode portable 1_75_0 v1\vscode portable 1_75_0 v1.csproj'.
error: There are no versions available for the package 'xarial.xcad.solidworks'.

Usage: NuGet.CommandLine.XPlat.dll package add [options]

Options:
-h|--help Show help information
--force-english-output Forces the application to run using an invariant, English-based culture.
--package Id of the package to be added.
--version Version of the package to be added.
-d|--dg-file Path to the dependency graph file to be used to restore preview and compatibility check.
-p|--project Path to the project file.
-f|--framework Frameworks for which the package reference should be added.
-n|--no-restore Do not perform restore preview and compatibility check. The added package reference will be unconditional.
-s|--source Specifies NuGet package sources to use during the restore.
--package-directory Directory to restore packages in.
--interactive Allow the command to block and require manual action for operations like authentication.
--prerelease Allows prerelease packages to be installed.
`

@artem1t
Copy link
Contributor

artem1t commented Feb 20, 2023

Are you able to install any other packages from the nuget? Could you please share the exact line you use to add package from the console?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants