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

Script errors on package install #6

Closed
akindle opened this issue Aug 25, 2016 · 5 comments
Closed

Script errors on package install #6

akindle opened this issue Aug 25, 2016 · 5 comments
Milestone

Comments

@akindle
Copy link

akindle commented Aug 25, 2016

Hi!
I'm attempting to use this package in some projects and I was getting some script errors on install. I have created a minimum project for testing this and it's continued to occur. I suspect this is a user error on my part rather than anything, but I thought I'd post here to ask one way or another.
After running Install-Package DllExport, I get a dialogbox asking for a namespace (not clear what this is supposed to be?). After entering something (I've tried unique namespaces as well as the namespace of the classes containing things I would like to export), I get the following errors:

Executing script file 'c:\Users\alex\documents\visual studio 2015\Projects\dllTest\packages\DllExport.1.3.0\tools\install.ps1'
The term 'nsbin.ps1' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Users\alex\documents\visual studio 2015\Projects\dllTest\packages\DllExport.1.3.0\tools\install.ps1:77 char:2
+ . <<<<  "nsbin.ps1"
    + CategoryInfo          : ObjectNotFound: (nsbin.ps1:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

The term 'defNS' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Users\alex\documents\visual studio 2015\Projects\dllTest\packages\DllExport.1.3.0\tools\install.ps1:78 char:6
+ defNS <<<<  $([System.IO.Path]::Combine($installPath, 'lib\net20', $assemblyFName + '.dll'))  $vNamespace
    + CategoryInfo          : ObjectNotFound: (defNS:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Attempting to build after this occurs results in the build running forever (or at least a few hours) without finishing/failing.

Thanks for your help!

@3F
Copy link
Owner

3F commented Aug 25, 2016

Thanks for report, I Will look it later

it's part of Dynamic definitions of namespaces (#2)

@3F 3F added the bug label Aug 25, 2016
3F added a commit that referenced this issue Aug 28, 2016
+ should be fixed bug #6
@3F
Copy link
Owner

3F commented Aug 28, 2016

Can you check c45523b changes ( binary here: https://ci.appveyor.com/project/3Fs/dllexport/history )

I can't reproduce your bug, thus I can't exactly say about your problem...

+the illustration of dynamic NS (same for Install-Package):

dynamic_namespace_csharp

@3F 3F added the need info label Aug 30, 2016
@forexplanex
Copy link

I have the same issue too.

@3F
Copy link
Owner

3F commented Sep 15, 2016

@forexplanex

Can you check c45523b changes ( binary here: https://ci.appveyor.com/project/3Fs/dllexport/history )

it probably should resolve this error, so I need to know. Please test and tell me about result, thanks.

@3F 3F added this to the v1.4 milestone Oct 1, 2016
3F added a commit that referenced this issue Oct 5, 2016
    * FIXED: Fixed bug - `An item with the same key has already been added`. Issue #10
    * FIXED: Bug with Meta library: Incorrect default values. Issue #16
             please note, the __cdecl is the default calling convention for our library
             as and for C and C++ programs.

    * FIXED?: Probably fixed bug - `Script errors on package install` Issue #6
    * FIXED?: Probably fixed bug - `non-English system language - syntax error` Issue #7
    * NEW: GUI Configurator with updated ddNS features.
    * NEW: Implemented feature 'Export for platform': [ x86 / x64 / x86 + x64 ] Issue #9
    * NEW: Implemented feature 'Base for ordinals'. Issue #11
           There is also alternative to configure this number - MSBuild property: DllExportOrdinalsBase

    * NEW: The one (1) now is used by default as Base for all ordinals.
           `Mimic ordinal counter (start from 1 instead of 0)` Issue #8

    * CHANGED: The ddNS features now as binary cmdlet `NSBin`. Use `nsbin.bat` if needed.
    * CHANGED: `Set "Inherited = false" in AttributeUsage for DllExportAttribute`. Issue #15
    * OTHER: other possible changes and fixes.
@3F
Copy link
Owner

3F commented Oct 5, 2016

v1.4 changelog entry:

    * FIXED?: Probably fixed bug - `Script errors on package install` Issue #6

reopen if needed

@3F 3F closed this as completed Oct 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants