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…
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…
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…
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…
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…
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…
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…
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)
{
…
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…
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…
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…
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…
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.
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…
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…