How to get rid of “$(ReplacableToken…)” in web.config completely

前端 未结 4 1760
伪装坚强ぢ
伪装坚强ぢ 2021-01-30 08:43

I am creating a publishable package and when I navigate to obj\\Debug\\Package\\PackageTmp directory, I am seeing the web.config\'s connection string is replaced by

4条回答
  •  醉梦人生
    2021-01-30 09:00

    You have to edit your .csproj file and in the Debug PropertyGroup you'll have to add the following:

    False
    

    I have the following on Release and ReleaseCERT Configurations in my Project.csproj (I've only added the AutoParameterizationWebConfigConnectionStrings line):

    
        pdbonly
        true
        bin\
        TRACE
        prompt
        4
        
        False
    
    
        bin\
        TRACE
        true
        pdbonly
        AnyCPU
        prompt
        
        False
    
    

提交回复
热议问题