C# put date into program when compiled

前端 未结 7 1480
感情败类
感情败类 2021-01-12 23:49

I was thinking about how to create a program that would only be valid for X period of time, (within a C# app).

What I was thinking was that you would have the curren

7条回答
  •  [愿得一人]
    2021-01-13 00:38

    The problem with .Net is that it would be easy to decompile and change the date you want to use has constant. You might need to think to something else.

    You could write it in the registry but then the people will edit this value.

    They aren't a perfect solution but to have an account that validate with an external (web) server is a good idea.

提交回复
热议问题