I'm trying to add a Systems.Collections reference in my .cs code in Xamarin Studios, however I failed to find this in the list of references in Xamarin Studios under > References > Edit References. The listed packages in Xamarin are all in .NET 4.5
There is not a System.Collections dll. Most of the System.Collections classes are included in the System.dll.
Related
I'm having some issues trying to run the macOS project of a Xamarin.Forms application.
More information
Xamarin.Forms v4.5.0.356
TargetFrameworkVersion v2.0
The project builds without errors, but when I run the application, it only shows the application bar:
Any ideas?
This should be your custom assembly , you need to add them from your Mac manually .
Each framework within Xamarin ships with over a dozen assemblies. Not all of these assembly packages are referenced in your project by default.
To edit packages that are referenced in your project, use the Edit References dialog, which can be displayed by double-clicking on the References folder, or by selecting Edit References on its context menu actions:
However , from your shared netstandard and System.Drawing.Common.dll assembly , you will not find them in Xamarin.Mac Package . That should be your custom .Net Assembly . You can browse the folder from your mac to select them .
I have an issue with ASP.NET V5 RC1 where it won't let me add a reference to a class library (targeting the 4.6 framework) from my web application. When I right click references and select "Add reference" and then select Solution-> Class library, it shows an error that says
---------------------------
Microsoft Visual Studio
---------------------------
The following projects are not supported as references :
- The project XYZ has a target framework that is incompatible or has version higher than the current project and cannot be referenced.
Hopefully I'm just doing something silly, but google isn't helping. I've tried changing the target framework for the class library to no avail. Can anybody tell me what I've done wrong?
My project is set to .NET Framework 4.5. I get the following error when attemping to use SimpleIOC (from MVVM Light) in my WPF project:
Error 3 Reference required to assembly 'System.ComponentModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' containing the implemented interface 'System.IServiceProvider'. Add one to your project.
I can't figure out why it's giving me this error. From what I understand, this is a mscorlib class so I'm not sure where it is getting System.ComponentModel from.
I can write Dim test As IServiceProvider without the compiler complainging. Is there some kind of version issue?
It seems like a possible Visual Studio bug. I created a new WPF project and was able to find the System.ComponentModel.dll in the list of .Net Framework assemblies. For my current project, I ended up browsing to it to add a reference to it. All is well now.
I created a Portable Class Library and added the MVVM Light PCL to it.
PCL
--Model
----Term.cs
Term.cs contains a reference to GalaSoft.MvvmLight.
I also created a MVVM Store C# Application. I added a reference to the PCL above. However, when I build the project, I get the following errors:
Cannot resolve Assembly or Windows Metadata file 'GalaSoft.MvvmLight.dll'
Type universe cannot resolve assembly: GalaSoft.MvvmLight, Version=4.0.23.23876, Culture=neutral, PublicKeyToken=null
If I remove the model class (Term.cs), the MVVM C# Application builds successfully?
I will appreciate any assistance in resolving this.
Couple of things to check up front -- are you using NuGet >= 2.1? 2.2 was just released yesterday.
Are you using the Portable.MVVMLightLibs package from NuGet?
Do you have a reference to the Portable.MVVMLightLibs in your store app project? If you're deriving from ViewModelBase, then other projects that use it need a reference to the libraries that contain base types. That's regular .NET and has nothing to do with PCLs. If you add the package to your store app, does that resolve the issue?
Regards,
Oren
I used the RC version of Visual Studio 2012 to create an ASP.NET Webforms project and I intentionally took the 4.0 version of .Net and of the project template to avoid complications after the release of VS2012.
Now I anyway bumped into the problem, that is revealed in the following error message:
'jquery' is not a valid script name. The name must end in '.js'.
As I noticed in the references, following assembly references are broken:
Microsoft.ScriptManager.jQuery
Microsoft.ScriptManager.jQuery.UI.Component
System.Web.Providers
I tried to re-install jQuery using NuGet but did not find these assemblies.
If I now create a new .Net 4.0 ASP.NET Webforms project in Visual Studio 2012 I get a lot of new references which are not present in my current (originally created in the RC-version, now opened in VS2012 RTM), like:
AspNet.ScriptManager.jQuery
AspNet.ScriptManager.jQuery.UI.Combined
but I can't find them among reference sources if I try to add a new reference to my original project.
How can I make my application runnable in VS2012?
Check packages
AspNet.ScriptManager.jQuery.1.7.1
AspNet.ScriptManager.jQuery.UI.Combined.1.8.20
make sure the following dlls are in the lib folder
AspNet.ScriptManager.jQuery.dll
AspNet.ScriptManager.jQuery.UI.Combined.dll
And check the reference in your project to make sure all references are resolved.
Sometimes, the dlls didn't added to the source control and when you do a get latest from the source control these two dlls are missing.