Suppose someone sends me his asp.net project via email to my PC. I unzip it, and try to compile it, and get a warning from Visual Studio that the solution did not originate on my PC, and might run a dangerous script. Is there a way to know if a solution
file is safe? What is exactly could be dangerous about it?
Member
45 Points
80 Posts
Why does windows warn on solution files that are emailed to my PC?
Apr 12, 2017 05:50 PM|RateFor|LINK
Suppose someone sends me his asp.net project via email to my PC. I unzip it, and try to compile it, and get a warning from Visual Studio that the solution did not originate on my PC, and might run a dangerous script. Is there a way to know if a solution file is safe? What is exactly could be dangerous about it?
All-Star
43250 Points
14982 Posts
Re: Why does windows warn on solution files that are emailed to my PC?
Apr 12, 2017 06:18 PM|PatriceSc|LINK
Hi,
You can configure a solution to run some code at build time for example using https://msdn.microsoft.com/en-us/library/ke5z92ks.aspx (build events) or https://msdn.microsoft.com/en-us/library/bb126445.aspx (t4 templates).