How to know if a platform/device will have the required dependencies to run a project?

AntfeldChristian 0 Reputation points
2023-01-22T21:39:39.31+00:00

Hi all,

I am learning C# through MS Learn and it's going great so far. My mind does wander to possible issues throughout due to past issues with learning other programming languages like Java and Python.

One concern I have is whether or not a project I'm working on will have everything it needs to run on the platform the project is meant to run on. I'm thinking about what it means for a Java program to run on a PC (needing the JVM and the right version of Java installed etc.). From what I've read so far, Mono is required for some Microsoft-based projects to run on some platforms.

Is there a way to know what is needed for a project I'm working on will have everything it needs to run in the target environment before starting? I'm still trying to figure out exactly what I want to do with C# and Xamarin is interesting because it seems to need nothing on the user device beyond app installation from what I've found so far.

I'd hate to get deep into a project to find out that a user will need to make modifications to their device environment for the project to work on their device. I doubt end-users would be happy with making these changes and want to avoid that where possible.

Thanks!

P.S. RTFM is an acceptable answer, I'm only looking for better ways if there are any

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,342 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,197 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Castorix31 81,461 Reputation points
    2023-01-29T06:35:16.4366667+00:00

    The target platform needs at least the Runtime of the Framework you used

    For example,

    for .NET Framework : .NET Framework deployment guide for developers

    for .NET Core : Deploy .NET Core apps with Visual Studio

    for Windows App SDK : Windows App SDK deployment overview

    etc...

    0 comments No comments

  2. Karen Payne MVP 35,031 Reputation points
    2023-01-29T15:22:09.15+00:00

    For Windows you can use an installer that checks if the host computer has required software as per the following. The most common thing is, does the host computer have the correct .NET Framework or .NET Core Framework.

    Thinking about another common requirement is to work with Excel automation which can be a nightmare unless using a third party library which would be included as part of the install process.

    Overall, this is why web applications shine, nothing needs to be installed.

    0 comments No comments