C#: single-user vs. multi-user application

VAer 756 Reputation points
2021-12-02T00:39:47.1+00:00

If I build an C# application (Visual Studio) and I put the exe file in shared drive.

Can it be used by multiple users at the same time?

How should I know if my application is for single user or for multiple users?

Thanks.

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,237 questions
{count} votes

Accepted answer
  1. Bruce (SqlWork.com) 55,686 Reputation points
    2021-12-22T15:45:33.467+00:00

    If the app uses a shared resource, say a database, or file share, then it must be written to correct support “multiple” users.

    Say it used a static counter for assigning keys, or open a shared file in read/write, then there would be issues in running two copies at the same time.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Karen Payne MVP 35,036 Reputation points
    2021-12-02T01:50:16.73+00:00

    Yes the application may be used by multiple users on a shared drive. If there are settings specific to each user write the settings into a json file which resides on their work-station.

    In regards to "single user or for multiple users", there are no differences other than having settings for each user which would be identified say by Environment.UserName or from Active Directory.

    0 comments No comments