Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Project properties are disabled. #4845


User avatar
0
TimMackey created

TypeScript Build tab in *.Web.Host project properties says "One for more tsconfig.json files detected. Project properties are disabled." There is only 1 tsconfig.json file at root level for this project. There are many tsconfig.json files in sub-folders for this project.


5 Answer(s)
  • User Avatar
    0
    alper created
    Support Team
    • Open Solution Explorer
    • Right click on the tsconfig.json file and choose 'Exclude From Project'.
    • You might see the tsconfig.json disappear from the Solution Explorer. In that case choose 'Show All Files' option from the top of the Solution Explorer toolbar.
    • Right click on the tsconfig.json and choose 'Include In Project'.
  • User Avatar
    0
    TimMackey created

    Excluding then Including tsconfig.json makes no difference. Properties are still disabled. TypeScript version: 2.6 Note: there are 15 tsconfig.json files in .Web.Host/node_modules/ and /e2e/ in addition to the project file in the src folder.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi Tim,

    As far as I remember, there must be an property on the host project's csproj for disabling typescript build;

    <TypeScriptCompileBlocked>True</TypeScriptCompileBlocked>
    

    Please add this if it doesn't exist in your Host project's csproj file.

  • User Avatar
    0
    TimMackey created

    That is the solution. Thank you.

  • User Avatar
    0
    alper created
    Support Team

    thanks for the feedback