我创建了一个自定义公共目标"RealClean",它删除了输出和"中间输出"目录中的每个文件.我把它放在Microsoft.Common.targets文件中.当我在我的csproj上运行MsBuild时一切都很好.但是当我在我的sln上运行MsBuild(它只是引用csproj列表)时出现以下错误
error MSB4057: The target "RealClean" does not exist in the project.
Run Code Online (Sandbox Code Playgroud)
这是我输入运行MsBuild的命令行
C:\Windows\Microsoft .NET\Framework\v3.5\MsBuild.exe /p:Configuration="Release";OutputPath="..\..\MSBuild.Referentiel.net35";nowarn="1591,1573" /t:RealClean mySolution.sln
Run Code Online (Sandbox Code Playgroud)
任何提示?