Vs2022 wpf debugging input parameters

1. Code to get parameters

 string[] pargs = Environment.GetCommandLineArgs();
            if(pargs.Length != 3)
            {
                Close();
                return;
            }

2. Setting parameters

Project Properties -- "Search "Command" --" Open Debug Settings

 

おすすめ

転載: blog.csdn.net/glc22/article/details/131551448