Questions tagged [.net-standard-1.4]

.NET Standard 1.4 is a version of [.net-standard]. Do not use this tag unless you have a specific question about this specific version.

Ref:

Related tags

23 questions
84
votes
15 answers

Could not load file or assembly 'System.ComponentModel.Annotations, Version=4.1.0.0

I have a .NET Standard 1.4 class library that references the System.ComponentModel.Annotations (4.3.0) NuGet package. I'm then referencing this class library from a .NET Framework 4.6.2 test project. It builds fine, but at runtime I get the…
Dan Ellis
  • 5,537
  • 8
  • 47
  • 73
18
votes
4 answers

How can I revert to referencing Nuget packages in packages.config after using Package References in a .NET Standard project?

Background I have several C# code libraries which I recently converted to target .NET Standard 1.4, for use in a Xamarin Forms project as well as many legacy .NET Framework 4.6.1 projects. I initially added Nuget packages to the .NET Standard class…
Cass
  • 870
  • 8
  • 21
15
votes
4 answers

Could not load file or assembly 'System.Security.Cryptography.Algorithms, Version = 4.1.0.0

I'm trying to use System.Security.Cryptography.RNGCryptoServiceProvider class in my .NET Standard 1.4 library and according to this topic my code looks like this: private byte[] GenerateRandomNumber(int length) { using (var…
Carlos28
  • 2,381
  • 3
  • 21
  • 36
7
votes
1 answer

The target "GetBuiltProjectOutputRecursive" does not exist in the project when referencing netstandard library

I have a Xamarin Android project, and I am trying to add a reference to my own netstandard1.4 class library. When I add the reference, my Android application will no longer build. I get error MSB4057: The target "GetBuiltProjectOutputRecursive" does…
Dave
  • 3,676
  • 4
  • 28
  • 39
5
votes
0 answers

How to add resx as link to a .NET standard project?

I have a resx file from a .NET 3.5 project. I would like to use that same file on a .NET standard 1.4 project so that I can just reference the .NET standard dll to a UWP and a .NET 4.6 project. So I added the Strings.resx and Strings.Designer.cs as…
Lance
  • 2,774
  • 4
  • 37
  • 57
5
votes
2 answers

C# - Loading image from different assembly

I have an image in different assembly: (.NET Standard 1.4) ResourcesAssembly/Common/Images/CompanyLogo.png - mandatory requirement Build Action: Content - mandatory requirement Copy to output directory: Copy if newer (I checked after a compilation…
Alex34758
  • 396
  • 4
  • 14
3
votes
2 answers

.NET Framework 4.6.1 application has errors referencing .NET Standard 1.4 class library

I've been trying to wrap my head around the differences between the .NET Frameworks, .NET Core and .NET Standard. From what I've been reading, .NET Standard is kind of the lowest common denominator, and that libraries written using .NET Standard…
Jonathan Wood
  • 65,341
  • 71
  • 269
  • 466
3
votes
1 answer

Can't use DBNull in .NET Standard 1.4?

I am creating a class library that will be used in a WPF project and a .NET Core project. For the following code: public class MyClass { private void MyFunction(object o) { if (o == DBNull) { …
yitzih
  • 3,018
  • 3
  • 27
  • 44
3
votes
1 answer

NetStandard 1.4 does not allow decorating class with [DataContract]

When I try to decorate a class with [DataContract] in a .NETStandard 1.4 project [DataContract] [KnownType(typeof(SingleSensorEvent))] [KnownType(typeof(BatchSensorEvent))] public abstract class WebItemBase { // details left out } I get the…
bas
  • 13,550
  • 20
  • 69
  • 146
2
votes
1 answer

How to use M2Mqtt in Xamarin Forms targeting .Net Standard 2.0 with fallback portability?

I am trying to integrate MQTT in a cross platform app targeting Android as well as Universal Windows Platform (UWP). However am stuck at integrating M2MQTT nuget package. When I try to install the above nuget package following error is shown even…
2
votes
1 answer

How to place a connection string to a json configuration file using .NET Core Configuration framework?

My solution has 3 project: Entity(include Dbcontext,...), target framwork .NetStandard 1.4, project type library WebApi WebUi i want to create function migrate into Entity Project. In Entity project, i have a class TemporaryDbContextFactory public…
2
votes
1 answer

How to use The MetadataType Attribute in a library targeting .net standard 1.4

I created a library targeting the .net standard 1.4. The library contains my domain model (POCOs). I want to decorate my classes with the MetadataType and the dataannotations attributes. I installed the System.ComponentModel.Annotations but the…
Issa Dawaji
  • 183
  • 1
  • 12
2
votes
0 answers

How to include the multiple .NET Standard versions in the NuGet package

I have created the two projects with respect to support .NET Standard version 1.2 & 1.4 and refer the project.json as per target version. Then create the NuGet package with nuspec below.
Parthi
  • 361
  • 6
  • 21
2
votes
1 answer

Resources File in .NET Standard (1.4) with New csproj

I'm developing an application targeting .NET Standard 1.4, using the new csproj style (not project.json), and trying to get a localizable resources file to become available throughout the project. I get compiler errors when including a resources…
Dagrooms
  • 1,507
  • 2
  • 16
  • 42
2
votes
1 answer

Does referencing .net standard lib from full require shipping system.* assemblies

I noticed that after referencing a .net standard lib (1.4) from my .net full project (4.6.1) That my output folder is full of System.*.dll assemblies. Does this mean that if I target the full framework but reference a .net standard lib I have to…
trampster
  • 8,598
  • 4
  • 37
  • 52
1
2