Giter Site home page Giter Site logo

monodevelop-nuget-addin's Introduction

NuGet Addin for MonoDevelop and Xamarin Studio 3.0 and 4.x

This is a port of the SharpDevelop NuGet package management addin that works with MonoDevelop and Xamarin Studio 3.0 and 4.x under Windows, Mac and Linux. It adds a Manage Packages dialog to MonoDevelop and Xamarin Studio where you can install, update or uninstall NuGet packages.

Please note that Xamarin Studio 5.0 and MonoDevelop 5.0 both have the NuGet addin built-in. All further development of the NuGet addin, for MonoDevelop and Xamarin Studio version 5.0 and above, will be done in the main MonoDevelop GitHub repository. The code available here is for MonoDevelop and Xamarin Studio 3.0 and 4.x.

The addin uses a custom build of NuGet.Core.dll, based on the original NuGet source code taken from CodePlex, some code from the latest version of the Mono runtime library and a custom build of Microsoft's XML Document Transformation (XDT) library.

For more information see the announcement blog post.

Adam Patridge has created a YouTube video which covers installation and how to use the addin.

Requirements

  • MonoDevelop 3.0, 4.0, 4.2 or Xamarin Studio 4.0, 4.2
  • Mono 2.10.9 or later
  • mono-winfxcore (required by NuGet.Core)
  • mono-wcf (required by NuGet.Core)

Installation

The addin is available from a custom MonoDevelop addin repository. You can add this repository to MonoDevelop or Xamarin Studio via the Add-in Manager. To open the Add-in Manager dialog on Windows and on Linux select Add-in Manager from the Tools menu. On the Mac open the Xamarin Studio menu and select Add-in Manager. In the Add-in Manager dialog select the Gallery tab. Click the down arrow next to the repositories drop down list and select Manage Repositories to open the Add-in Repository Management dialog. Click the Add button. Copy the MonoDevelop NuGet addin repository url, shown below, that corresponds to your MonoDevelop version, and paste it into the Url text box.

For MonoDevelop and Xamarin Studio 5.0:

The NuGet addin is built-in and does not need to be installed separately.

For MonoDevelop and Xamarin Studio 4.x:

http://mrward.github.com/monodevelop-nuget-addin-repository/4.0/main.mrep

For MonoDevelop 3.0:

http://mrward.github.com/monodevelop-nuget-addin-repository/3.0.5/main.mrep

Click the OK button and then click the Close button. Back in the Add-in Manager dialog expand IDE Extensions by clicking the arrow next to it. The addin should then be displayed under the IDE Extensions as NuGet Package Management. To install the addin select NuGet Package Management and then click the Install button.

Opening the Manage Packages Dialog

To open the Manage Packages dialog simply right click your project, or your solution or References in the Solutions window and select Manage NuGet Packages. You can also open the Manage Packages dialog by selecting Manage NuGet Packages from the Project menu.

Configuring NuGet Package Sources

The sources or feeds for NuGet packages can be configured in MonoDevelop's options.

On Linux open the options dialog by selecting Preferences from the Edit menu. On Windows select Options from the Tools menu. On a Mac select Preferences from the Xamarin Studio menu. In the Options dialog scroll down the categories on the left hand side until you find NuGet and then select Package Sources. Here you can add and remove NuGet package sources.

#License

MIT

Original SharpDevelop addin code is LGPL.

Environments Tested

  • OpenSuse 12.2 - Mono 2.10.9
  • Windows 7 - Mono 2.10.9
  • OS X 10.8.2 - Mono 2.10.12

Issues

Addin fails to load with Type Load Exception

If the addin fails to load with a "type load exception has occurred" error message then check the required mono libraries are installed.

One way to check what assemblies are missing is to open NuGet.Core.dll in MonoDevelop's Assembly Browser and check the assemblies it references. The Assembly Browser should show the missing assemblies.

NuGet.Core.dll depends on

  1. System.Data.Services.Client v4.0.0.0
  2. WindowsBase v4.0.0.0

WindowsBase is in the mono-winfxcore package. Whilst System.Data.Services.Client is in the mono-wcf package.

Trust failure

If you see a WebException indicating there was an invalid certificate received from the server then you should try running the following:

mozroots --import --sync

See the original post on NuGet on Mono for more details.

monodevelop-nuget-addin's People

Contributors

ghuntley avatar kjohnphillip avatar mrward avatar squidge avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

monodevelop-nuget-addin's Issues

Nuget Restore

Not sure if its related to the plugin or MonoDevelop but is Nuget Restore possible with this? I can get it working via the command line but ideally would like to hit Build on my project in MD and for it to work like VS.

Thanks

Chain removal?

When I try to update, it does update but the content files don't get updated - but maybe that is by design for nuget. I tried removing and was reminded of another issue where the Package Manager does not prompt me to remove dependencies that are no longer needed - in my case I have about 4 so it is a pain to remove all.

Unable to search for packages

Hi,

I am unable to search for a package from the search bar in the Manage Packages window. It gives the following error:

"An error occurred while processing this request."

All packages are displayed either when search button is pressed and there is no search term entered or when the Manage Packages windows is opened. I am able to install the packages that load default like JSON.NET etc.

Version Information:

  • Linux crunchbang 3.13-1-686-pae #1 SMP Debian 3.13.7-1 (2014-03-25) i686 GNU/Linux
  • Plugin version: 0.8 (Nuget 2.7.2)
  • Monodevelop 4.0
  • Mono 3.0.6

2014-04-02-181323_672x523_scrot
2014-04-02-181408_664x522_scrot

Proxy authentication issue

My windows machine is set to use a PAC file for the proxy configuration with a login/password authentication scheme.
I changed the Xamarin Studio config file specifying a proxy which does not require the authentication and so I'm now able to connect to the internet and to download your the nuget add-in. When I try to use it though I have the following error: (407) Proxy Authentication required.

It looks like it's using the windows proxy instead of the one used by Xamarin Studio.

[feature req] Addin should allow packaging and uploading

There should be a NuGet packaging project with settings - what to include into package, text of recipe, destination folder for packaged archive. There should be settings for repositories to upload, and command to publish package.

PCL portable-Unsupported with NuGet

I have create a PCL project and anytime that i try to add references from Nuget i have this error: (this error happens with all packages)

Could not install package 'Microsoft.Bcl.Build 1.0.13'. You are trying to install this package into a project that targets 'portable-Unsupported', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author. System.InvalidOperationException: Could not install package 'Microsoft.Bcl.Build 1.0.13'. You are trying to install this package into a project that targets 'portable-Unsupported', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author. at NuGet.ProjectManager.ExtractPackageFilesToProject (IPackage package) [0x00000] in :0 at NuGet.ProjectManager.AddPackageReferenceToProject (IPackage package) [0x00000] in :0 at NuGet.ProjectManager.Execute (NuGet.PackageOperation operation) [0x00000] in :0
at NuGet.ProjectManager.Execute (IPackage package, IPackageOperationResolver resolver) [0x00000] in :0 at NuGet.ProjectManager.AddPackageReference (IPackage package, Boolean ignoreDependencies, Boolean allowPrereleaseVersions) [0x00000] in :0 at NuGet.ProjectManager.AddPackageReference (System.String packageId, NuGet.SemanticVersion version, Boolean ignoreDependencies, Boolean allowPrereleaseVersions) [0x00000] in :0 at ICSharpCode.PackageManagement.SharpDevelopPackageManager.AddPackageReference (IPackage package, Boolean ignoreDependencies, Boolean allowPrereleaseVersions) [0x00000] in :0 at ICSharpCode.PackageManagement.SharpDevelopPackageManager.InstallPackage (IPackage package, ICSharpCode.PackageManagement.InstallPackageAction installAction) [0x00000] in :0 at ICSharpCode.PackageManagement.PackageManagementProject.InstallPackage (IPackage package, ICSharpCode.PackageManagement.InstallPackageAction installAction) [0x00000] in :0 at ICSharpCode.PackageManagement.InstallPackageAction.ExecuteCore () [0x00000] in :0 at ICSharpCode.PackageManagement.ProcessPackageAction.Execute () [0x00000] in :0 at ICSharpCode.PackageManagement.PackageActionRunner.Run (IPackageAction action) [0x00000] in :0 at ICSharpCode.PackageManagement.PackageViewModel.InstallPackage (IEnumerable`1 packageOperations) [0x00000] in :0
at ICSharpCode.PackageManagement.PackageViewModel.InstallPackage () [0x00000] in :0 at ICSharpCode.PackageManagement.PackageViewModel.TryInstallingPackage ()
[0x00000] in :0

that are information on my environment

=== Xamarin Studio ===

Version 4.2.2 (build 2)
Runtime:
Mono 3.2.5 ((no/964e8f0)
GTK+ 2.24.20 theme: Raleigh
GTK# (2.12.0.0)
Package version: 302050000

=== Xamarin.Android ===

Version: 4.10.1 (Business Edition)
Android SDK: /Users/luigisaggese/Library/Developer/Xamarin/android-sdk-mac_x86
Supported Android versions:
1.6 (API level 4)
2.1 (API level 7)
2.2 (API level 8)
2.3 (API level 10)
3.1 (API level 12)
3.2 (API level 13)
4.0 (API level 14)
4.0.3 (API level 15)
4.1 (API level 16)
4.2 (API level 17)
Java SDK: /usr
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)

=== Apple Developer Tools ===

Xcode 5.0.2 (3335.32)

=== Xamarin.iOS ===

Version: 7.0.5.2 (Business Edition)
Build date: 2013-02-12 20:04:08-0500

=== Xamarin.Mac ===

Xamarin.Mac: Not Installed

=== Operating System ===

Mac OS X 10.8.5

NuGet Package Manager Console

This is less an issue and more of a discussion question. I am using ServiceStack v3.9.71 (BSD license) for an internal project. ServiceStack recently released v4.0, which was released under a commercial license. 3.9.71 remains available under the BSD license. However it requires use of the NuGet Package Manager Console to install. (See here: https://github.com/ServiceStackV3/ServiceStackV3)

My question is how much effort would it take to create a Console interface for Xamarin & SharpDevelop? I may be interested in helping with such an endeavor, but I won't have time to look at it until next week. Just wanted to start the discussion about whether there is significant enough value in doing it.

Unable to install Nu-Get from repository on Xamarin 4.2.2 on OSX 10.9.1

I'm running Xamarin Studio 4.2.2 on OSX 10.9.1.

I'm attempting to follow the installation instructions in the README:

https://github.com/mrward/monodevelop-nuget-addin/blob/master/README.md

I've opened up the Xamarin Add-In Manager, gone to the Gallery tab, and added the following repository:

http://mrward.github.com/monodevelop-nuget-addin-repository/4.0/main.mrep

However, when I then select mrward.github.com from the Repository list, it shows me:

screen shot 2014-03-26 at 5 24 09 pm

If I go back and select All Repositories, and expand IDE extensions, I don't see Nu-Get listed.

screen shot 2014-03-26 at 5 23 44 pm

Any thoughts?

web.config transforms do not update the web.config file

If a NuGet package contains a web.config.transform then when it is installed the project's web.config file is not transformed.

app.config.transform files are working.

Issue is that web.config file updates are ignored when the project is not a web project and the addin is not detecting the project type based on the project type guids in the MSBuild project file.

NuGet package group target framework information being ignored when installing package

A NuGet package can specify a dependency on another NuGet package when a particular target framework is being installed:

<dependencies>
   <group targetFramework="net40">
      <dependency id="MyDependency" version="1.0"/>
   </group>
</dependencies>

Now when installing into a project that does not target net40 then this dependency should not be resolved or used. However the addin does try to resolve this and will fail if it cannot find this dependency.

------- Managing...Test 1.0 -------
Attempting to resolve dependency 'MyDependency (= 1.0)'.
Unable to resolve dependency 'MyDependency (= 1.0)'.
System.InvalidOperationException: Unable to resolve dependency 'MyDependency (= 1.0)'.
  at NuGet.InstallWalker.OnDependencyResolveError (NuGet.PackageDependency dependency) [0x00000] in <filename unknown>:0 
  at NuGet.PackageWalker.Walk (IPackage package) [0x00000] in <filename unknown>:0 
  at NuGet.InstallWalker.ResolveOperations (IPackage package) [0x00000] in <filename unknown>:0 
  at ICSharpCode.PackageManagement.SharpDevelopPackageManager.GetInstallPackageOperations (IPackage package, ICSharpCode.PackageManagement.InstallPackageAction installAction) [0x00000] in <filename unknown>:0 
  at ICSharpCode.PackageManagement.PackageManagementProject.GetInstallPackageOperations (IPackage package, ICSharpCode.PackageManagement.InstallPackageAction installAction) [0x00000] in <filename unknown>:0 
  at ICSharpCode.PackageManagement.PackageViewModel.GetPackagesRequiringLicenseAcceptance (IPackageManagementSelectedProject selectedProject) [0x00000] in <filename unknown>:0 
  at ICSharpCode.PackageManagement.PackageViewModel.CanInstallPackage (IPackageManagementSelectedProject selectedProject) [0x00000] in <filename unknown>:0 
  at ICSharpCode.PackageManagement.PackageViewModel.CanInstallPackage (IList`1 projects) [0x00000] in <filename unknown>:0 
  at ICSharpCode.PackageManagement.PackageViewModel.InstallPackagesForSelectedProjects (IList`1 projects) [0x00000] in <filename unknown>:0 
  at ICSharpCode.PackageManagement.PackageViewModel.TryInstallingPackagesForSelectedProjects (IList`1 projects) [0x00000] in <filename unknown>:0 
==============================

I suspect it is because the project target framework is not being passed to the InstallWalker which would allow it to ignore the dependency based on the project's target framework.

NuGet 2.8.1

Hi,

I tried to install a NuGet Package and the installation complained that it needed NuGet version 2.8.1 of greater.

My current NuGet Add-in in Xamarin is 2.7.2, but I have noticed in the repository there have been changes (3 days ago) to make it compatible with 2.8.1?

When is the updated add-in going to be available?

Thank you
Regards
Gerd

Unable to update Microsoft.Owin package

Updating Microsoft.Owin...
Attempting to resolve dependency 'Owin (≥ 1.0)'.
Looking for updates for 'Microsoft.Owin'...
Updating 'Microsoft.Owin' from version '2.1.0-rc1' to '3.0.1' in project 'Microsoft.Http2.Owin.Server'.
Removing 'Microsoft.Owin 2.1.0-rc1' from Microsoft.Http2.Owin.Server.
Added file 'packages.config'.
Added file 'packages.config' to project 'Microsoft.Http2.Owin.Server'.
Successfully removed 'Microsoft.Owin 2.1.0-rc1' from Microsoft.Http2.Owin.Server.
Adding 'Microsoft.Owin 3.0.1' to Microsoft.Http2.Owin.Server.
For adding package 'Microsoft.Owin 3.0.1' to project 'Microsoft.Http2.Owin.Server' that targets 'net45',

Assembly references are being added from 'lib/net45'
Added file 'packages.config'.
Added file 'packages.config' to project 'Microsoft.Http2.Owin.Server'.
An exception was thrown while dispatching a method call in the UI thread.

Steps to reproduce:

  1. take Monodevelop 5.9 (build 431), or similar
  2. git clone https://github.com/MSOpenTech/http2-katana.git
  3. Open solution and try to update this package in Microsoft.Http2.Owin.Server.csproj

"Untrusted HTTP certificate detected" on Ubuntu

I keep getting the following message when trying to use this plugin on Ubuntu 13.10:

"Do you want to temporarily trust this certificate in order to connect to the server at www.nuget.org?"

It would be nice if this confirmation could be remembered permanently somehow.

Xamarin 4.1.6

Hi I'm on the alpha channel and all of a sudden the nuget addin was gone.

It seems the Xamarin upped the version numbers for Core and Ide which means

<Dependencies>
    <Addin id="Core" version="4.0"/>
    <Addin id="Ide" version="4.0"/>
</Dependencies>

Is no longer valid:

<Dependencies>
    <Addin id="Core" version="4.1.6"/>
    <Addin id="Ide" version="4.1.6"/>
</Dependencies>

I was able repackage using the above, but i am not able to say any 4.* is valid. Do you know if thats possible?

By the way repository could use a build/make file is this also the way you build?

  • xbuild (builds to /bin)
  • cp src/MonoDevelop.PackageManagement/MonoDevelop.PackageManagement.addin.xml bin/MonoDevelop.PackageManagement.addin.xml
  • /Applications/Xamarin\ Studio.app/Contents/MacOS/mdtool setup pack bin/MonoDevelop.PackageManagement.addin.xml

Updated in dialog

Even though there is an update (in my prerelease nuget packages), Updated does not show anything. Perhaps there should be a refresh button? I'll try restarting everything.

Just to be clear, in Installed you can see my version 3.0.84, and in Available you can see 3.0.85, but nothing in Updated. The only way I see to redo it is to uninstall manually from Installed and reinstall.

Can't install Nancy.Testing

------- Installing...Nancy.Testing 0.15.1 -------
Attempting to resolve dependency 'Nancy (= 0.15.1)'.
Attempting to resolve dependency 'csquery'.
Unable to resolve dependency 'csquery'.
System.InvalidOperationException: Unable to resolve dependency 'csquery'.
at NuGet.InstallWalker.OnDependencyResolveError (NuGet.PackageDependency dependency) [0x00000] in :0
at NuGet.PackageWalker.Walk (IPackage package) [0x00000] in :0
at NuGet.InstallWalker.ResolveOperations (IPackage package) [0x00000] in :0
at NuGet.ProjectManager.Execute (IPackage package, IPackageOperationResolver resolver) [0x00000] in :0
at NuGet.ProjectManager.AddPackageReference (IPackage package, Boolean ignoreDependencies, Boolean allowPrereleaseVersions) [0x00000] in :0
at NuGet.ProjectManager.AddPackageReference (System.String packageId, NuGet.SemanticVersion version, Boolean ignoreDependencies, Boolean allowPrereleaseVersions) [0x00000] in :0
at ICSharpCode.PackageManagement.SharpDevelopPackageManager.AddPackageReference (IPackage package, Boolean ignoreDependencies, Boolean allowPrereleaseVersions) [0x00000] in :0
at ICSharpCode.PackageManagement.SharpDevelopPackageManager.InstallPackage (IPackage package, ICSharpCode.PackageManagement.InstallPackageAction installAction) [0x00000] in :0
at ICSharpCode.PackageManagement.PackageManagementProject.InstallPackage (IPackage package, ICSharpCode.PackageManagement.InstallPackageAction installAction) [0x00000] in :0
at ICSharpCode.PackageManagement.InstallPackageAction.ExecuteCore () [0x00000] in :0
at ICSharpCode.PackageManagement.ProcessPackageAction.Execute () [0x00000] in :0
at ICSharpCode.PackageManagement.PackageActionRunner.Run (ICSharpCode.PackageManagement.ProcessPackageAction action) [0x00000] in :0
at ICSharpCode.PackageManagement.PackageViewModel.InstallPackage (IEnumerable`1 packageOperations) [0x00000] in :0
at ICSharpCode.PackageManagement.PackageViewModel.InstallPackage () [0x00000] in :0

at ICSharpCode.PackageManagement.PackageViewModel.TryInstallingPackage () [0x00000] in :0

Source code transforms - project properties not replaced.

NuGet docs - http://docs.nuget.org/docs/creating-packages/configuration-file-and-source-code-transformations

To reproduce

  1. Create a NuGet package with a source code transform. File: Content/test.cs.pp
namespace $rootnamespace$.Models {
    public struct CategoryInfo {
        public string categoryid;
        public string description;
        public string htmlUrl;
        public string rssUrl;
        public string title;
    }
}
  1. Install the package into a project.

Expected result

Test.cs file added to project and $rootnamespace$ is replaced with the project's root namespace.

Actual result

Test.cs file added and the $rootnamespace$ is replaced with an empty string.

Problem

DotNetProjectExtensions.GetEvaluatedProperty(..) returns an empty string when it should be getting the property from the MSBuild project file and possibly even evaluating it.

Other project properties should be supported. Look at NuGet packages and see what project properties are being used.

Http auth issue

Hi, one of my nuget sources is password protected using http auth. Is there a way to enter my credentials and get the packages? Right now it just says

image

Installation Feedback

After installing the package, the install dialog prints out "Installation failed" in red. This sent me into an infinite loop of installing the package over and over again. After giving up, I tried to create a normal VB.NET project and realized the packages were already installed.

I'm using…

  • Xamarin 4.2.2
  • Mono 3.2.5
  • Mountain Lion
  • Starbucks Wi-Fi (don't know if this would help but any information is useful)

Private Nuget Server Sources do not prompt for UserName/ Password (win auth)

Probably a solution due to my mac ignorance, however.

I get a 401 error when connecting to a nuget server which is secure via widows auth.
The second time I reloaded MonoDevelop the eror displayed states "The Initialization function tries to access Value on this instance".

Might there be a handy trick or work around here on this which I am to macnewb to know?

BTW - Pure awesomeness is here nonetheless.
Very thankful for the time you put into this!
It's like Xmas morning all over again today!

Any chance of a MD plug in for V 2.6 (PSMStudio)?

Looking to update NuGet packaging for MonoGame and the last platform is PSMobile.

However even the latest version of PSMStudio is only based on MonoDevelop 2.6.

Is there any chance to way for this NuGet plugin to work with that version?

Republish new package

Thanks for this project! Love it.
Any chance you could publish an updated version to your repo? I started down the path of packaging it to publish to my own repo in the meantime (for easy install for my team) but I can work around the features I needed ("prerelease" checkbox, etc.) in the short term, so I figured I'd open this issue up instead. :)

Thanks!

Error while building a nuget restore project

I have started a project in Visual Studio 2013 Update 1 that contains 2 PCL projects among other types of projects. I enabled Nuget restore and all works well using VS, including on other machines. While opening the same solution in Xamarin Studio for Mac and building the project i get the error:

/path/.nuget/NuGet.targets: Error: Command 'mono --runtime=v4.0.30319 /path/.nuget/NuGet.exe install "/path/packages.config" -source "" -RequireConsent -solutionDir "/path/"' exited with code: 2. (Project.Core)

I even tried restoring the packages manually, but building the project still results in the same error.

I am using Xamarin Studio 4.2.4 with Nuget Package Management 0.9.

What could be the problem?

File Share Repositories supported?

It seems that file share repositories do not work.
I can add a folder as a repository (which one works in Visual Studio under Windows).
None of the packages are recognized.

is this a know bug/limitation?

Support for pre-release packages?

Is there any way of getting the plugin to list pre-release versions in the gallery? Specifically, was after latest Hadoop package: http://hadoopsdk.codeplex.com/ (0.2.0.0-prerelease) but only much older stable version appears in gallery (0.0.0.4).

I notice there's an allowPreRelease flag but haven't had time to chase through code to see how to set it - is there a repositories.config key that could be used?

Nice work so far - thanks!

web.config being added when project has existing file with different case

To reproduce:

  1. Create an ASP.NET web project in MonoDevelop.
  2. Modify the web.config file so its case is Web.config
  3. Using the Manage Packages dialog install Nancy.Hosting.Aspnet

Expected result:

Nancy web.config settings added to existing Web.config file.

Actual result:

New web.config file created with Nancy settings added to them.
Case sensitivity problem.

Update add-in repository URL for Xamarin Studio 4.0 and MonoDevelop 4.0

I was unable to add the NuGet Addin's repository using the URL in README.txt.

The README.txt file provides the following URL: http://mrward.github.com/monodevelop-nuget-addin-repository/4.0/main.mrep

I got it to work by removing main.mrep from the URL: http://mrward.github.com/monodevelop-nuget-addin-repository/4.0/

I'm running Xamarin Studio 4.0.12 on OS X 10.8.4.

Unable to manage packages

I have tried to create the directory manually. I have given everyone r/w. Is there a way to switch the directory or am I missing something in setup. If there are any other logs or info, please let me know.

I have Mono MDK 3.2.1 installed and Xamarian 4.0.12 (build 3)

System.TypeInitializationException: An exception was thrown by the type initializer for ICSharpCode.PackageManagement.PackageManagementServices ---> System.UnauthorizedAccessException: Access to the path "/Users/chrisyoung/.config/NuGet" is denied.
at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x0006c] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin-no-pcl/build-root/mono-3.2.1/mcs/class/corlib/System.IO/Directory.cs:116
at System.IO.Directory.CreateDirectory (System.String path) [0x000a4] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin-no-pcl/build-root/mono-3.2.1/mcs/class/corlib/System.IO/Directory.cs:80
at NuGet.PhysicalFileSystem.EnsureDirectory (System.String path) [0x00000] in :0
at NuGet.PhysicalFileSystem.AddFileCore (System.String path, System.Action1 writeToStream) [0x00000] in <filename unknown>:0 at NuGet.PhysicalFileSystem.AddFile (System.String path, System.Action1 writeToStream) [0x00000] in :0
at NuGet.XmlUtility.CreateDocument (System.Xml.Linq.XName rootName, IFileSystem fileSystem, System.String path) [0x00000] in :0
at NuGet.XmlUtility.GetOrCreateDocument (System.Xml.Linq.XName rootName, IFileSystem fileSystem, System.String path) [0x00000] in :0
at NuGet.Settings..ctor (IFileSystem fileSystem, System.String fileName, Boolean isMachineWideSettings) [0x00000] in :0
at NuGet.Settings.ReadSettings (IFileSystem fileSystem, System.String settingsPath, Boolean isMachineWideSettings) [0x00000] in :0
at NuGet.Settings.ReadSettings (IFileSystem fileSystem, System.String settingsPath) [0x00000] in :0
at NuGet.Settings.LoadUserSpecificSettings (System.Collections.Generic.List`1 validSettingFiles, IFileSystem fileSystem, System.String configFileName) [0x00000] in :0
at NuGet.Settings.LoadDefaultSettings (IFileSystem fileSystem, System.String configFileName, IMachineWideSettings machineWideSettings) [0x00000] in :0
at ICSharpCode.PackageManagement.PackageManagementOptions..ctor (MonoDevelop.Core.Properties properties) [0x00000] in :0
at ICSharpCode.PackageManagement.PackageManagementOptions..ctor () [0x00000] in :0
at ICSharpCode.PackageManagement.PackageManagementServices..cctor () [0x00000] in :0
--- End of inner exception stack trace ---
at MonoDevelop.PackageManagement.Commands.ManagePackagesHandler.Run () [0x00000] in :0

Update to NuGet 2.5

Support the new features in NuGet 2.5:

  • Automatic import of msbuild targets and props files
  • Allow users to overwrite content files that already exist
  • Update All button to allow updating all packages at once

Update to NuGet 2.5:

  • Add any fixes required to work on Mono 2.10.9

packages directory

Hi, is there a way to specify the packages directory so that it is not in the solution? (I have multiple slns sharing the packages.) To do this in Visual Studio, I use

 <config>
   <add key="repositoryPath" value="..\..\..\..\packages" />
 </config>

in my NuGet.config. Perhaps there is somewhere I can set this... am I correct that the Mono versino of nuget does not hunt for NuGet.Config? Or maybe it does?

Update. Bummer, I tried to copy a .nuget with a NuGet.config but seems like it got ignored...
Update2. In fact, it was not ignored at all, but I needed to flip the direction of the slashes.

  <config>
    <add key="repositoryPath" value="../../../../packages" />
  </config>

Nice. Now if I could only get Xamarin Studio to look in the right directory...

Thank you again for making this tool Matt.

XML Document Transforms (XDT) fail with InvalidDataException

XDT supported was included in NuGet 2.6. Trying to install a NuGet package with a basic XDT on Linux using Mono 2.10.9 throws an InvalidDataException.

Template app.config.install.xdt

<?xml version="1.0"?>
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
  <connectionStrings>
    <add name="MyDB" 
      connectionString="value for the deployed Web.config file" 
      xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
    <add name="AWLT" connectionString="newstring"
       providerName="newprovider"
       xdt:Transform="Insert" />
  </connectionStrings>
  <system.web>
    <customErrors defaultRedirect="GenericError.htm"
      mode="RemoteOnly" xdt:Transform="Replace">
      <error statusCode="500" redirect="InternalError.htm"/>
    </customErrors>
  </system.web>
</configuration>

Error on installing NuGet package

An error occurred while applying transformation to 'app.config' in project 'NuGetTest': Argument cannot be null.
Parameter name: key
System.IO.InvalidDataException: An error occurred while applying transformation to 'app.config' in project 'NuGetTest': Argument cannot be null.
Parameter name: key ---> Microsoft.Web.XmlTransform.XmlNodeException: Argument cannot be null.
Parameter name: key ---> System.ArgumentNullException: Argument cannot be null.
Parameter name: key
at System.Xml.NameTable.Add (System.String key) [0x000ae] in /home/abuild/rpmbuild/BUILD/mono-2.10.9/mcs/class/System.XML/System.Xml/NameTable.cs:111
at System.Xml.XmlAttribute.set_Prefix (System.String value) [0x0004b] in /home/abuild/rpmbuild/BUILD/mono-2.10.9/mcs/class/System.XML/System.Xml/XmlAttribute.cs:210
at Microsoft.Web.XmlTransform.XmlElementContext.ScrubTransformAttributesAndNamespaces (System.Xml.XmlNode node)
at Microsoft.Web.XmlTransform.XmlElementContext.CreateCloneInTargetDocument (System.Xml.XmlNode sourceNode)
at Microsoft.Web.XmlTransform.XmlElementContext.get_TransformNode ()
at Microsoft.Web.XmlTransform.Transform.get_TransformNode ()
at Microsoft.Web.XmlTransform.Transform.ApplyOnAllTargetNodes ()
at Microsoft.Web.XmlTransform.Transform.Execute (Microsoft.Web.XmlTransform.XmlElementContext context, System.String argumentString)
--- End of inner exception stack trace ---
at Microsoft.Web.XmlTransform.XmlTransformationLogger.LogErrorFromException (System.Exception ex)
at Microsoft.Web.XmlTransform.Transform.Execute (Microsoft.Web.XmlTransform.XmlElementContext context, System.String argumentString)
at Microsoft.Web.XmlTransform.XmlTransformation.HandleElement (Microsoft.Web.XmlTransform.XmlElementContext context)
--- End of inner exception stack trace ---
at NuGet.XdtTransformer.PerformXdtTransform (IPackageFile file, System.String targetPath, IProjectSystem projectSystem)
at NuGet.XdtTransformer.TransformFile (IPackageFile file, System.String targetPath, IProjectSystem projectSystem)
at NuGet.ProjectSystemExtensions.AddFiles (IProjectSystem project, IEnumerable1 files, IDictionary2 fileTransformers)
at NuGet.ProjectManager.ExtractPackageFilesToProject (IPackage package)
at NuGet.ProjectManager.AddPackageReferenceToProject (IPackage package)
at NuGet.ProjectManager.Execute (NuGet.PackageOperation operation)
at NuGet.ProjectManager.Execute (IPackage package, IPackageOperationResolver resolver)
at NuGet.ProjectManager.AddPackageReference (IPackage package, Boolean ignoreDependencies, Boolean allowPrereleaseVersions)
at NuGet.ProjectManager.AddPackageReference (System.String packageId, NuGet.SemanticVersion version, Boolean ignoreDependencies, Boolean allowPrereleaseVersions)
at ICSharpCode.PackageManagement.SharpDevelopPackageManager.AddPackageReference (IPackage package, Boolean ignoreDependencies, Boolean allowPrereleaseVersions)
at ICSharpCode.PackageManagement.SharpDevelopPackageManager.InstallPackage (IPackage package, ICSharpCode.PackageManagement.InstallPackageAction installAction)
at ICSharpCode.PackageManagement.PackageManagementProject.InstallPackage (IPackage package, ICSharpCode.PackageManagement.InstallPackageAction installAction)
at ICSharpCode.PackageManagement.InstallPackageAction.ExecuteCore ()
at ICSharpCode.PackageManagement.ProcessPackageAction.Execute ()
at ICSharpCode.PackageManagement.PackageActionRunner.Run (IPackageAction action)
at ICSharpCode.PackageManagement.PackageViewModel.InstallPackage (IEnumerable`1 packageOperations)
at ICSharpCode.PackageManagement.PackageViewModel.InstallPackage ()
at ICSharpCode.PackageManagement.PackageViewModel.TryInstallingPackage ()

mac detection?

Is there a way that a Monomac or Xamarin.Mac project could be discovered to receive .Mac components from a nuget package? Currently the .Mac project pulls the .NET 4.5 components, which is not the intended effect. Its ruining my nuget take over everything plan.

Unable to install package from local repository

Adding ICSharpCode.TextEditor.dll...
Installing 'ICSharpCode.TextEditor.dll 3.2.2'.
Could not find a part of the path "/tmp/nuget/myak7i1k.owp/lib/net40/ICSharpCode.TextEditor.dll".

$ nuget config repositorypath
/var/calculate/remote/distfiles/NuGet
$ sudo nuget config repositorypath
/var/calculate/remote/distfiles/NuGet

xamarin studio 4.08 not support ?

first . thank you create it , it's good tool

install fail

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> ICSharpCode.SharpZipLib.Zip.ZipException: Cannot find central directory
at ICSharpCode.SharpZipLib.Zip.ZipFile.ReadEntries () [0x0029c] in /private/tmp/source/bockbuild-crypto-mono/profiles/mono-mac-xamarin/build-root/mono-3.0.10/mcs/class/ICSharpCode.SharpZipLib/ICSharpCode.SharpZipLib/Zip/ZipFile.cs:407
at ICSharpCode.SharpZipLib.Zip.ZipFile..ctor (System.String name) [0x00020] in /private/tmp/source/bockbuild-crypto-mono/profiles/mono-mac-xamarin/build-root/mono-3.0.10/mcs/class/ICSharpCode.SharpZipLib/ICSharpCode.SharpZipLib/Zip/ZipFile.cs:226
--- End of inner exception stack trace ---
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00069] in /private/tmp/source/bockbuild-crypto-mono/profiles/mono-mac-xamarin/build-root/mono-3.0.10/mcs/class/corlib/System.Reflection/MonoMethod.cs:238
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in /private/tmp/source/bockbuild-crypto-mono/profiles/mono-mac-xamarin/build-root/mono-3.0.10/mcs/class/corlib/System.Reflection/MethodBase.cs:114
at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x000d5] in /private/tmp/source/bockbuild-crypto-mono/profiles/mono-mac-xamarin/build-root/mono-3.0.10/mcs/class/corlib/System/Delegate.cs:424
at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00018] in /private/tmp/source/bockbuild-crypto-mono/profiles/mono-mac-xamarin/build-root/mono-3.0.10/mcs/class/corlib/System/MulticastDelegate.cs:72
at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in /private/tmp/source/bockbuild-crypto-mono/profiles/mono-mac-xamarin/build-root/mono-3.0.10/mcs/class/corlib/System/Delegate.cs:398
at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x00000] in :0
at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x00000] in :0
at GLib.SignalClosure.MarshalCallback (IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data) [0x00000] in :0

how to install it .? in 4.08

Make errors more visible in Manage Packages dialog

Currently error messages only appear in the messages area on the dialog. Errors that occur on installing/uninstall/updating a NuGet package should be more visible.

In SharpDevelop we display error messages at the bottom of the dialog.

Upgrades

When I upgrade, it seems the old package sticks around. Is that normal behavior? When I "manage" the packages, no projects are selected. In the example below, I have 4 MvvmCross's (from my nuget server), versions 115, 117, 119 and 121.

screen shot 2013-12-06 at 2 56 23 pm

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.