2017-01-04 7 views

Répondre

1

En parrainant ce lien Use code analysis with Visual Studio DNX project (.xproj) J'ai ajouté les lignes suivantes dans le fichier project.Json maintenant son travail.

"frameworks": { 
    "net46": { 
     "buildOptions": { 
     "define": [ "CODE_ANALYSIS" ] 
     } 
    }, 
    "netstandard1.6": { 
     "imports": "dnxcore50" 
    } 
    } 

enter image description here

Remarque: Une fois ajouté le code dans le fichier project.json, fermez toutes les applications de Visual Studio et démarrer. Alors ça va marcher.