Click here to Skip to main content
15,890,741 members
Home / Discussions / C#
   

C#

 
GeneralRe: Change Cursor Mouse for an image in application but when close app return to the initial state Pin
Member 130142789-Mar-17 4:03
Member 130142789-Mar-17 4:03 
GeneralRe: Change Cursor Mouse for an image in application but when close app return to the initial state Pin
Eddy Vluggen9-Mar-17 4:20
professionalEddy Vluggen9-Mar-17 4:20 
GeneralRe: Change Cursor Mouse for an image in application but when close app return to the initial state Pin
Member 130142789-Mar-17 6:39
Member 130142789-Mar-17 6:39 
GeneralRe: Change Cursor Mouse for an image in application but when close app return to the initial state Pin
Eddy Vluggen9-Mar-17 9:33
professionalEddy Vluggen9-Mar-17 9:33 
GeneralRe: Change Cursor Mouse for an image in application but when close app return to the initial state Pin
Member 1301427810-Mar-17 0:50
Member 1301427810-Mar-17 0:50 
GeneralRe: Change Cursor Mouse for an image in application but when close app return to the initial state Pin
Eddy Vluggen10-Mar-17 2:47
professionalEddy Vluggen10-Mar-17 2:47 
GeneralRe: Change Cursor Mouse for an image in application but when close app return to the initial state Pin
Member 1301427813-Mar-17 6:21
Member 1301427813-Mar-17 6:21 
Question.NET core, standart and desktop app (using VS2017) (trying to replace PCL) Pin
Super Lloyd8-Mar-17 4:04
Super Lloyd8-Mar-17 4:04 
I am trying to understand how to write a multiplatform library with either .NET core / standart.

(remark before I was using PCL but it's fidly with target framework, I was hoping it wil be easier with .NET Core/standart)

here is my simple library class
C#
namespace ClassLibrary1
{
    public class Class1
    {
        public static void DoFoo()
        {
            Console.WriteLine("hello");
        }
    }
}

Now I try to use it in a console app (targeting .NET 4.6.2)

In .NET Standard library, it compiles but I get the following runtime error:
System.IO.FileNotFoundException: 'Could not load file or assembly 'System.Console, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.'

In a .NET Core library, I got compiler error:
3>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.Sdk.Common.targets(73,5): error : Project 'H:\Temp\ConsoleApp3\ClassLibrary2\ClassLibrary2.csproj' targets '.NETCoreApp,Version=v1.1'. It cannot be referenced by a project that targets '.NETFramework,Version=v4.6.2'.

I am at loss how to go any further... :'(
Can someone enlightnen me on what's going on
(didn't find how to add System.Console reference DLL to my .NET standard library)

[EDIT] Solved it!
I had to use Nuget to add System.Console to my console app and then it worked!
Interesting...
I have to investigate how this ll work and test this .NET Standard library on Android! Smile | :)
A new .NET Serializer
All in one Menu-Ribbon Bar
Taking over the world since 1371!

QuestionPlotting serial port data using zedgraph (data vs time) Pin
Ram _Varman8-Mar-17 1:51
Ram _Varman8-Mar-17 1:51 
AnswerRe: Plotting serial port data using zedgraph (data vs time) Pin
Garth J Lancaster8-Mar-17 2:15
professionalGarth J Lancaster8-Mar-17 2:15 
GeneralRe: Plotting serial port data using zedgraph (data vs time) Pin
Ram _Varman8-Mar-17 2:17
Ram _Varman8-Mar-17 2:17 
AnswerRe: Plotting serial port data using zedgraph (data vs time) Pin
Gerry Schmitz8-Mar-17 6:39
mveGerry Schmitz8-Mar-17 6:39 
GeneralRe: Plotting serial port data using zedgraph (data vs time) Pin
Ram _Varman9-Mar-17 2:59
Ram _Varman9-Mar-17 2:59 
GeneralRe: Plotting serial port data using zedgraph (data vs time) Pin
Gerry Schmitz9-Mar-17 6:08
mveGerry Schmitz9-Mar-17 6:08 
Questionreferencing a dll available in a different folder from a Windows Service without copying the dll Pin
govindarajan k8-Mar-17 0:24
govindarajan k8-Mar-17 0:24 
AnswerRe: referencing a dll available in a different folder from a Windows Service without copying the dll Pin
Pete O'Hanlon8-Mar-17 0:40
mvePete O'Hanlon8-Mar-17 0:40 
AnswerRe: referencing a dll available in a different folder from a Windows Service without copying the dll Pin
Alan N8-Mar-17 3:58
Alan N8-Mar-17 3:58 
GeneralRe: referencing a dll available in a different folder from a Windows Service without copying the dll Pin
govindarajan k9-Mar-17 0:27
govindarajan k9-Mar-17 0:27 
QuestionLINQ error string matching? Pin
Member 28240516-Mar-17 4:41
Member 28240516-Mar-17 4:41 
AnswerRe: LINQ error string matching? Pin
Richard Deeming6-Mar-17 5:36
mveRichard Deeming6-Mar-17 5:36 
GeneralRe: LINQ error string matching? Pin
Member 28240516-Mar-17 20:28
Member 28240516-Mar-17 20:28 
QuestionWorking with .resx Files / C#, WinForms [Closed] Pin
HobbyProggy5-Mar-17 21:44
professionalHobbyProggy5-Mar-17 21:44 
AnswerRe: Working with .resx Files / C#, WinForms Pin
Gerry Schmitz6-Mar-17 9:42
mveGerry Schmitz6-Mar-17 9:42 
GeneralRe: Working with .resx Files / C#, WinForms Pin
HobbyProggy6-Mar-17 19:27
professionalHobbyProggy6-Mar-17 19:27 
GeneralRe: Working with .resx Files / C#, WinForms Pin
Gerry Schmitz6-Mar-17 20:08
mveGerry Schmitz6-Mar-17 20:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.