I have a command line like this in my post-build event:
aspnet_regiis -pef connectionStrings "$(ProjectDir)" -prov "DataProtectionConfigurationProvider"
But aspnet_regiis
is returning a failure because the tralling \
in the directory. Pass full name, path + web.config doesn't work either.
How can I solve this?
You can use the TrimEnd function to trim the trailing slash character
$(ProjectDir.TrimEnd('\'))
I found this option in this post
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With