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 Project solution file reference on import process #5056

Open
marska opened this Issue Feb 6, 2019 · 0 comments

Comments

Projects
None yet
2 participants
@marska
Copy link

marska commented Feb 6, 2019

Steps to Reproduce

    powershell.exe -noprofile
    Import-Module dbatools
    $Error

Expected Behavior

No error

Actual Behavior

Resolve-Path : Cannot find path 'C:\Program Files\WindowsPowerShell\Modules\dbatools\0.9.752\bin\projects\dbatools\dbatools.sln' because it does not exist.
At line:70 char:25
+ ...     $sln = (Resolve-Path -Path "$libraryBase\projects\dbatools\dbatoo ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Program File...ls\dbatools.sln:String) [Resolve-Path], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.ResolvePathCommand

Environmental data

  • dbatools: 0.9.752
  • PowerShell: 5.1.17763.134
  • SQL Server: Microsoft SQL Server 2012 (SP3) (KB3072779) - 11.0.6020.0 (X64)

@wsmelton wsmelton self-assigned this Feb 7, 2019

@wsmelton wsmelton added the bugs_life label Feb 7, 2019

@wsmelton wsmelton changed the title Error after Import-Module VS Project solution file reference on import process Feb 7, 2019

potatoqualitee added a commit that referenced this issue Feb 10, 2019

Merge pull request #5068 from sqlcollaborative/noerror
Import error fix - test for existence first - #5056
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment