-
Notifications
You must be signed in to change notification settings - Fork 754
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Skipping target "BicepCompile" because all output files are up-to-date with respect to the input files #10686
Comments
Does the output file exist? If it is newer than the input file, it can be skipped by Visual Studio. |
@abatishchev, in addition to the above, can you increase the verbosity of up-to-date checks under Tools | Options and send us the logs from the Output window when this happens? |
|
Flipping |
It seems that both the input and output files are outside of your project judging by their relative paths. I'm not seeing a behavior like you're observing when the input files are under the project directory and when using standard output directory. <Project Sdk="Microsoft.Build.NoTargets">
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Azure.Bicep.CommandLine.win-x64" Version="0.17.1" />
<PackageReference Include="Azure.Bicep.MSBuild" Version="0.17.1" />
<PackageReference Include="Microsoft.VisualStudio.SlnGen" Version="10.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<Bicep Include="main.bicep" />
</ItemGroup>
</Project> |
@abatishchev Does that change the behavior that you're seeing? |
@majastrz it totally does, thanks!! Here's what I've got: <Project Sdk="Microsoft.Build.NoTargets">
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Azure.Bicep.CommandLine.win-x64" Version="0.17.1" />
<PackageReference Include="Azure.Bicep.MSBuild" Version="0.17.1" />
</ItemGroup>
<ItemGroup>
<Bicep Include="main.bicep" OutputFile="..\Application\ServiceGroupRoot\Template\ResourceProvider.json" />
</ItemGroup>
</Project> |
Bicep version
Bicep CLI version 0.17.1 (d423d61)
Describe the bug
Following the doc for NoTargets. I've created a simple project:
However nothing happens when I press F5 in VS. When I run the following command in console:
I'm seeing the following outputs:
Why it's getting skipped?
The text was updated successfully, but these errors were encountered: