Skip to content

Unhandled Exception when using .nuspec #9

Description

@tsvetelin-pavlov

Whenever I try to build a project with .nuspec, I get this:

Unhandled Exception: System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\Sources\TeamProjectDir\Sources\DEV\SolutionDir\ProjectDirProperties\TheNuspecFile.nuspec'. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) at NuCreate.Program.Open(String filename) at NuCreate.Program.Create(String solution, String project, String configuration, String plateform, String assembly) at NuCreate.Program.Main(String[] arguments)

The problem, as far as I can see it is that it doesn't put slash between Properties and the file (the correct path is 'D:\Sources\TeamProjectDir\Sources\DEV\SolutionDir\ProjectDir\Properties\TheNuspecFile.nuspec').

I usually put my .nuspec files in Properties folder in order to have nicely organized project, but I've checked - there is no difference if the .nuspec is in the project dir, and no difference if the .nuspec is named with more simpler name (i.e. Package.nuspec) - the issue remains.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions