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

Unable to resolve 'Jsonize' for '.NETCoreApp,Version=v1.0' #24

Closed
rmnblm opened this issue Oct 8, 2016 · 5 comments
Closed

Unable to resolve 'Jsonize' for '.NETCoreApp,Version=v1.0' #24

rmnblm opened this issue Oct 8, 2016 · 5 comments

Comments

@rmnblm
Copy link
Contributor

rmnblm commented Oct 8, 2016

I'm getting above error when running dotnet restore and can't getting it to work (whether on Windows or on macOS). Any ideas?

dotnet --info on Windows
.NET Command Line Tools (1.0.0-preview2-003131)

Product Information:
Version: 1.0.0-preview2-003131
Commit SHA-1 hash: (hidden)

Runtime Environment:
OS Name: Windows
OS Version: 10.0.14393
OS Platform: Windows
RID: win10-x64

dotnet --info on macOS
.NET Command Line Tools (1.0.0-preview2-003131)

Product Information:
Version: 1.0.0-preview2-003131
Commit SHA-1 hash: (hidden)

Runtime Environment:
OS Name: Mac OS X
OS Version: 10.12
OS Platform: Darwin
RID: osx.10.12-x64

screen shot 2016-10-08 at 14 03 12

@rmnblm
Copy link
Contributor Author

rmnblm commented Oct 8, 2016

Fixed this error by changing the package name in the project.json under Jsonize.Test to

"JackWFinlay.Jsonize": "*",

@rmnblm rmnblm closed this as completed Oct 8, 2016
@JackWFinlay
Copy link
Owner

Thanks for your issue, I was having the same ( but it still ran properly for me). I noticed that in your pull request you have something different. Which way works properly?

@rmnblm
Copy link
Contributor Author

rmnblm commented Oct 8, 2016

Hi Jack

Well to just use Jsonize I can reference the NuGet package by it's name, which is JackWFinlay.Jsonize but for local development I need to reference the local project to be able to use features which aren't published yet (like for example the TextTrimHandling property).

"Jsonize": {
    "target":  "project"
}

I wasn't able to restore the Jsonize package without this change (my development environment is macOS).

@JackWFinlay
Copy link
Owner

Right, thanks. I think it's best to leave it at what you have now so that we can test the latest functions. Tests will only really be run in a dev environment anyway. We can build another project if we want to test the released version. Looks like you might have solved an issue I've been having for a while, thanks.

@rmnblm
Copy link
Contributor Author

rmnblm commented Oct 8, 2016

Glad I could help you (took me more than an hour to solve this problem before I could even work on your issue).

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