Quantcast
Channel: Configuration and Deployment
Viewing all articles
Browse latest Browse all 3561

Visual Studio restoring staff

$
0
0

Say that i have the following link 

<li><a href='<%= FriendlyUrl.GenerateLink("home") %>'><i class="fa fa-home fa-fw"></i> Home</a></li>

and i change to 

<li><a href='<%= "http://" & Request.Url.Host & "/home") %>'><i class="fa fa-home fa-fw"></i> Home</a></li>

If i try to publish the application i get some errors that FriendlyUrl is not declared. The worst part is that the code is restored so i lose my changes :(

How do i prevent this behavior and get rid of the modified code?


Viewing all articles
Browse latest Browse all 3561


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>