If I add a public method to a C # class, do I need to recompile other assemblies using this type?

The question is in the title.

I would like to avoid recompiling, because the source code that I am editing is third-party, and I would like to use the source binaries where possible, and replace only the assembly that contains the modified class. But I'm not sure if this is safe. In C ++, for example, this is definitely a bad idea.

+3
source share
3 answers

No.

, , ( ), , ( ), - .

+6

, , :

  • () , ., .
  • Specific Version to true AssemblyInfo.cs
+1

. .

0

Source: https://habr.com/ru/post/1746296/


All Articles