Skip to content
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

Adding existing cs files or empty code files doesn't trigger FastUpdate #2347

Closed
mattscheffer opened this issue May 31, 2017 · 11 comments
Closed
Assignees
Labels
Bug This is a functional issue in already written code. Resolution-Fixed The bug has been fixed, refer to the milestone to see in which release it was fixed.
Milestone

Comments

@mattscheffer
Copy link

Using PR Build: https://devdiv.visualstudio.com/DefaultCollection/DevDiv/_git/VS/pullrequest/70878?_a=files

  1. Create a new C# Class Library (.NET Core)
  2. Build the solution.
  3. Add a new empty codefile (.cs) or existing code file. (This may already have code)
  4. Attempt to build the solution again

Expected
FastUpdate triggers the rebuild
Actual
FastUpdate thinks everything is up to date.

Log below is from adding an existing Class2.cs file from another project. Log is similar if a empty codefile is added instead.

1>FastUpToDate: Found input project file 'c:\users\v-masche\Source\Repos\ConsoleApp7\ConsoleApp7\ConsoleApp7.csproj'. (ConsoleApp7)
1>FastUpToDate: Found input import 'C:\Program Files\dotnet\sdk\1.1.0-rc4-005029\Sdks\Microsoft.NET.Sdk\Sdk\Sdk.props'. (ConsoleApp7)
1>FastUpToDate: Found input import 'C:\Program Files\dotnet\sdk\1.1.0-rc4-005029\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.Sdk.props'. (ConsoleApp7)
1>FastUpToDate: Found input import 'C:\Program Files\dotnet\sdk\1.1.0-rc4-005029\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.Sdk.DefaultItems.props'. (ConsoleApp7)
1>FastUpToDate: Found input import 'C:\Program Files\dotnet\sdk\1.1.0-rc4-005029\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.SupportedTargetFrameworks.props'. (ConsoleApp7)
1>FastUpToDate: Found input import 'C:\Program Files\dotnet\sdk\1.1.0-rc4-005029\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.Sdk.CSharp.props'. (ConsoleApp7)
1>FastUpToDate: Found input import 'C:\Program Files (x86)\Microsoft Visual Studio\VS15Preview\MSBuild\15.0\Microsoft.Common.props'. (ConsoleApp7)
1>FastUpToDate: Found input import 'c:\users\v-masche\Source\Repos\ConsoleApp7\ConsoleApp7\obj\ConsoleApp7.csproj.nuget.g.props'. (ConsoleApp7)
1>FastUpToDate: Found input import 'C:\Users\v-masche\.nuget\packages\microsoft.diasymreader.native\1.4.1\build\Microsoft.DiaSymReader.Native.props'. (ConsoleApp7)
1>FastUpToDate: Found input import 'C:\Program Files (x86)\Microsoft Visual Studio\VS15Preview\MSBuild\15.0\Imports\Microsoft.Common.props\ImportBefore\Microsoft.NuGet.ImportBefore.props'. (ConsoleApp7)
1>FastUpToDate: Found input import 'C:\Program Files\dotnet\sdk\1.1.0-rc4-005029\Sdks\Microsoft.NET.Sdk\Sdk\Sdk.targets'. (ConsoleApp7)
1>FastUpToDate: Found input import 'C:\Program Files\dotnet\sdk\1.1.0-rc4-005029\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.Sdk.BeforeCommon.targets'. (ConsoleApp7)
1>FastUpToDate: Found input import 'C:\Program Files\dotnet\sdk\1.1.0-rc4-005029\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.DefaultAssemblyInfo.targets'. (ConsoleApp7)
1>FastUpToDate: Found input import 'C:\Program Files\dotnet\sdk\1.1.0-rc4-005029\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.DefaultOutputPaths.targets'. (ConsoleApp7)
1>FastUpToDate: Found input import 'C:\Program Files\dotnet\sdk\1.1.0-rc4-005029\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.TargetFrameworkInference.targets'. (ConsoleApp7)
1>FastUpToDate: Found input import 'C:\Program Files\dotnet\sdk\1.1.0-rc4-005029\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.RuntimeIdentifierInference.targets'. (ConsoleApp7)
1>FastUpToDate: Found input import 'C:\Program Files (x86)\Microsoft Visual Studio\VS15Preview\MSBuild\15.0\Bin\Microsoft.CSharp.targets'. (ConsoleApp7)
1>FastUpToDate: Found input import 'C:\Program Files (x86)\Microsoft Visual Studio\VS15Preview\MSBuild\15.0\Bin\Microsoft.CSharp.CurrentVersion.targets'. (ConsoleApp7)
1>FastUpToDate: Found input import 'C:\Program Files (x86)\Microsoft Visual Studio\VS15Preview\MSBuild\15.0\Bin\Roslyn\Microsoft.CSharp.Core.targets'. (ConsoleApp7)
1>FastUpToDate: Found input import 'C:\Program Files (x86)\Microsoft Visual Studio\VS15Preview\MSBuild\Microsoft\VisualStudio\Managed\Microsoft.CSharp.DesignTime.targets'. (ConsoleApp7)
1>FastUpToDate: Found input import 'C:\Program Files (x86)\Microsoft Visual Studio\VS15Preview\MSBuild\Microsoft\VisualStudio\Managed\Microsoft.Managed.DesignTime.targets'. (ConsoleApp7)
1>FastUpToDate: Found input import 'C:\Program Files (x86)\Microsoft Visual Studio\VS15Preview\MSBuild\15.0\Bin\Microsoft.Common.targets'. (ConsoleApp7)
1>FastUpToDate: Found input import 'C:\Program Files (x86)\Microsoft Visual Studio\VS15Preview\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets'. (ConsoleApp7)
1>FastUpToDate: Found input import 'C:\Program Files (x86)\Microsoft Visual Studio\VS15Preview\MSBuild\Microsoft\VisualStudio\v15.0\CodeAnalysis\Microsoft.CodeAnalysis.targets'. (ConsoleApp7)
1>FastUpToDate: Found input import 'C:\Program Files (x86)\Microsoft Visual Studio\VS15Preview\MSBuild\15.0\Bin\Microsoft.Xaml.targets'. (ConsoleApp7)
1>FastUpToDate: Found input import 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Xaml.targets'. (ConsoleApp7)
1>FastUpToDate: Found input import 'C:\Program Files (x86)\Microsoft Visual Studio\VS15Preview\MSBuild\15.0\Bin\Microsoft.WorkflowBuildExtensions.targets'. (ConsoleApp7)
1>FastUpToDate: Found input import 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.WorkflowBuildExtensions.targets'. (ConsoleApp7)
1>FastUpToDate: Found input import 'C:\Program Files (x86)\Microsoft Visual Studio\VS15Preview\MSBuild\Microsoft\VisualStudio\v15.0\TeamTest\Microsoft.TeamTest.targets'. (ConsoleApp7)
1>FastUpToDate: Found input import 'C:\Program Files (x86)\Microsoft Visual Studio\VS15Preview\MSBuild\15.0\Microsoft.Common.targets\ImportAfter\Microsoft.Docker.ImportAfter.targets'. (ConsoleApp7)
1>FastUpToDate: Found input import 'C:\Program Files (x86)\Microsoft Visual Studio\VS15Preview\MSBuild\Sdks\Microsoft.Docker.Sdk\build\Microsoft.Docker.targets'. (ConsoleApp7)
1>FastUpToDate: Found input import 'C:\Program Files (x86)\Microsoft Visual Studio\VS15Preview\MSBuild\15.0\Microsoft.Common.targets\ImportAfter\Microsoft.NuGet.ImportAfter.targets'. (ConsoleApp7)
1>FastUpToDate: Found input import 'C:\Program Files (x86)\Microsoft Visual Studio\VS15Preview\MSBuild\15.0\Microsoft.Common.targets\ImportAfter\Microsoft.QualityTools.Testing.Fakes.ImportAfter.targets'. (ConsoleApp7)
1>FastUpToDate: Found input import 'C:\Program Files (x86)\Microsoft Visual Studio\VS15Preview\MSBuild\Microsoft\VisualStudio\v15.0\Fakes\Microsoft.QualityTools.Testing.Fakes.targets'. (ConsoleApp7)
1>FastUpToDate: Found input import 'C:\Program Files (x86)\Microsoft Visual Studio\VS15Preview\MSBuild\15.0\Microsoft.Common.targets\ImportAfter\Microsoft.Web.ImportAfter.targets'. (ConsoleApp7)
1>FastUpToDate: Found input import 'C:\Program Files (x86)\Microsoft Visual Studio\VS15Preview\MSBuild\Microsoft\VisualStudio\Managed.Web\Microsoft.Web.IISSupport.targets'. (ConsoleApp7)
1>FastUpToDate: Found input import 'c:\users\v-masche\Source\Repos\ConsoleApp7\ConsoleApp7\obj\ConsoleApp7.csproj.nuget.g.targets'. (ConsoleApp7)
1>FastUpToDate: Found input import 'C:\Program Files (x86)\Microsoft Visual Studio\VS15Preview\MSBuild\15.0\Bin\Microsoft.ServiceModel.targets'. (ConsoleApp7)
1>FastUpToDate: Found input import 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.ServiceModel.targets'. (ConsoleApp7)
1>FastUpToDate: Found input import 'C:\Program Files\dotnet\sdk\1.1.0-rc4-005029\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.Sdk.targets'. (ConsoleApp7)
1>FastUpToDate: Found input import 'C:\Program Files\dotnet\sdk\1.1.0-rc4-005029\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.Sdk.Common.targets'. (ConsoleApp7)
1>FastUpToDate: Found input import 'C:\Program Files\dotnet\sdk\1.1.0-rc4-005029\Sdks\Microsoft.NET.Sdk\build\Microsoft.PackageDependencyResolution.targets'. (ConsoleApp7)
1>FastUpToDate: Found input import 'C:\Program Files\dotnet\sdk\1.1.0-rc4-005029\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.Sdk.DefaultItems.targets'. (ConsoleApp7)
1>FastUpToDate: Found input import 'C:\Program Files\dotnet\sdk\1.1.0-rc4-005029\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.DisableStandardFrameworkResolution.targets'. (ConsoleApp7)
1>FastUpToDate: Found input import 'C:\Program Files\dotnet\sdk\1.1.0-rc4-005029\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.GenerateAssemblyInfo.targets'. (ConsoleApp7)
1>FastUpToDate: Found input import 'C:\Program Files\dotnet\sdk\1.1.0-rc4-005029\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.Publish.targets'. (ConsoleApp7)
1>FastUpToDate: Found input import 'C:\Program Files\dotnet\sdk\1.1.0-rc4-005029\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.PreserveCompilationContext.targets'. (ConsoleApp7)
1>FastUpToDate: Found input import 'C:\Program Files\dotnet\sdk\1.1.0-rc4-005029\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.Sdk.CSharp.targets'. (ConsoleApp7)
1>FastUpToDate: Found input import 'C:\Program Files\dotnet\sdk\1.1.0-rc4-005029\Sdks\NuGet.Build.Tasks.Pack\build\NuGet.Build.Tasks.Pack.targets'. (ConsoleApp7)
1>FastUpToDate: Found input Compile 'c:\users\v-masche\Source\Repos\ConsoleApp7\ConsoleApp7\Program.cs'. (ConsoleApp7)
1>FastUpToDate: Found input Compile 'c:\users\v-masche\Source\Repos\ConsoleApp7\ConsoleApp7\Class2.cs'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.reflection\4.3.0\ref\netstandard1.5\System.Reflection.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.security.cryptography.x509certificates\4.3.0\ref\netstandard1.4\System.Security.Cryptography.X509Certificates.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\microsoft.visualbasic\10.1.0\ref\netstandard1.1\Microsoft.VisualBasic.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.diagnostics.tracing\4.3.0\ref\netstandard1.5\System.Diagnostics.Tracing.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.linq\4.3.0\ref\netstandard1.6\System.Linq.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.runtime\4.3.0\ref\netstandard1.5\System.Runtime.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.io\4.3.0\ref\netstandard1.5\System.IO.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.threading.threadpool\4.3.0\ref\netstandard1.3\System.Threading.ThreadPool.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.reflection.primitives\4.3.0\ref\netstandard1.0\System.Reflection.Primitives.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.globalization.calendars\4.3.0\ref\netstandard1.3\System.Globalization.Calendars.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.reflection.metadata\1.4.1\lib\netstandard1.1\System.Reflection.Metadata.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\microsoft.win32.primitives\4.3.0\ref\netstandard1.3\Microsoft.Win32.Primitives.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.componentmodel.annotations\4.3.0\ref\netstandard1.4\System.ComponentModel.Annotations.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.console\4.3.0\ref\netstandard1.3\System.Console.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\microsoft.csharp\4.3.0\ref\netstandard1.0\Microsoft.CSharp.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.collections.immutable\1.3.0\lib\netstandard1.0\System.Collections.Immutable.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.reflection.dispatchproxy\4.3.0\ref\netstandard1.3\System.Reflection.DispatchProxy.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.security.cryptography.primitives\4.3.0\ref\netstandard1.3\System.Security.Cryptography.Primitives.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.io.memorymappedfiles\4.3.0\ref\netstandard1.3\System.IO.MemoryMappedFiles.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.net.nameresolution\4.3.0\ref\netstandard1.3\System.Net.NameResolution.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.linq.expressions\4.3.0\ref\netstandard1.6\System.Linq.Expressions.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.threading\4.3.0\ref\netstandard1.3\System.Threading.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.threading.tasks.extensions\4.3.0\lib\netstandard1.0\System.Threading.Tasks.Extensions.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.runtime.numerics\4.3.0\ref\netstandard1.1\System.Runtime.Numerics.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.runtime.interopservices\4.3.0\ref\netcoreapp1.1\System.Runtime.InteropServices.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.threading.thread\4.3.0\ref\netstandard1.3\System.Threading.Thread.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.threading.timer\4.3.0\ref\netstandard1.2\System.Threading.Timer.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.net.security\4.3.1\ref\netstandard1.3\System.Net.Security.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.io.compression\4.3.0\ref\netstandard1.3\System.IO.Compression.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.security.cryptography.encoding\4.3.0\ref\netstandard1.3\System.Security.Cryptography.Encoding.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.diagnostics.tools\4.3.0\ref\netstandard1.0\System.Diagnostics.Tools.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.objectmodel\4.3.0\ref\netstandard1.3\System.ObjectModel.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.io.filesystem\4.3.0\ref\netstandard1.3\System.IO.FileSystem.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.net.primitives\4.3.0\ref\netstandard1.3\System.Net.Primitives.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.dynamic.runtime\4.3.0\ref\netstandard1.3\System.Dynamic.Runtime.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.xml.readerwriter\4.3.0\ref\netstandard1.3\System.Xml.ReaderWriter.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.text.encoding\4.3.0\ref\netstandard1.3\System.Text.Encoding.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.collections\4.3.0\ref\netstandard1.3\System.Collections.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.runtime.extensions\4.3.0\ref\netstandard1.5\System.Runtime.Extensions.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.appcontext\4.3.0\ref\netstandard1.6\System.AppContext.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.collections.concurrent\4.3.0\ref\netstandard1.3\System.Collections.Concurrent.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.reflection.extensions\4.3.0\ref\netstandard1.0\System.Reflection.Extensions.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.text.encoding.extensions\4.3.0\ref\netstandard1.3\System.Text.Encoding.Extensions.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.net.requests\4.3.0\ref\netstandard1.3\System.Net.Requests.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.reflection.typeextensions\4.3.0\ref\netstandard1.5\System.Reflection.TypeExtensions.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.xml.xdocument\4.3.0\ref\netstandard1.3\System.Xml.XDocument.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.linq.parallel\4.3.0\ref\netstandard1.1\System.Linq.Parallel.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.security.principal\4.3.0\ref\netstandard1.0\System.Security.Principal.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.io.filesystem.primitives\4.3.0\ref\netstandard1.3\System.IO.FileSystem.Primitives.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.net.http\4.3.2\ref\netstandard1.3\System.Net.Http.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.runtime.interopservices.runtimeinformation\4.3.0\ref\netstandard1.1\System.Runtime.InteropServices.RuntimeInformation.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.numerics.vectors\4.3.0\ref\netstandard1.0\System.Numerics.Vectors.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.globalization\4.3.0\ref\netstandard1.3\System.Globalization.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.resources.resourcemanager\4.3.0\ref\netstandard1.0\System.Resources.ResourceManager.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.text.regularexpressions\4.3.0\ref\netcoreapp1.1\System.Text.RegularExpressions.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.diagnostics.process\4.3.0\ref\netstandard1.4\System.Diagnostics.Process.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.io.unmanagedmemorystream\4.3.0\ref\netstandard1.3\System.IO.UnmanagedMemoryStream.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.security.cryptography.algorithms\4.3.0\ref\netstandard1.6\System.Security.Cryptography.Algorithms.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.diagnostics.debug\4.3.0\ref\netstandard1.3\System.Diagnostics.Debug.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.globalization.extensions\4.3.0\ref\netstandard1.3\System.Globalization.Extensions.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.resources.reader\4.3.0\lib\netstandard1.0\System.Resources.Reader.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.threading.tasks\4.3.0\ref\netstandard1.3\System.Threading.Tasks.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.runtime.handles\4.3.0\ref\netstandard1.3\System.Runtime.Handles.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.threading.tasks.dataflow\4.7.0\lib\netstandard1.1\System.Threading.Tasks.Dataflow.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.io.compression.zipfile\4.3.0\ref\netstandard1.3\System.IO.Compression.ZipFile.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.io.filesystem.watcher\4.3.0\ref\netstandard1.3\System.IO.FileSystem.Watcher.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.threading.tasks.parallel\4.3.0\ref\netstandard1.1\System.Threading.Tasks.Parallel.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.linq.queryable\4.3.0\ref\netstandard1.0\System.Linq.Queryable.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.net.sockets\4.3.0\ref\netstandard1.3\System.Net.Sockets.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.net.webheadercollection\4.3.0\ref\netstandard1.3\System.Net.WebHeaderCollection.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.componentmodel\4.3.0\ref\netstandard1.0\System.ComponentModel.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.buffers\4.3.0\lib\netstandard1.1\System.Buffers.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAssemblyReference 'C:\Users\v-masche\.nuget\packages\system.diagnostics.diagnosticsource\4.3.1\lib\netstandard1.3\System.Diagnostics.DiagnosticSource.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAnalyzerReference 'C:\Users\v-masche\.nuget\packages\microsoft.codeanalysis.analyzers\1.1.0\analyzers\dotnet\cs\Microsoft.CodeAnalysis.CSharp.Analyzers.dll'. (ConsoleApp7)
1>FastUpToDate: Found input ResolvedAnalyzerReference 'C:\Users\v-masche\.nuget\packages\microsoft.codeanalysis.analyzers\1.1.0\analyzers\dotnet\cs\Microsoft.CodeAnalysis.Analyzers.dll'. (ConsoleApp7)
1>FastUpToDate: Found output Symbols 'c:\users\v-masche\Source\Repos\ConsoleApp7\ConsoleApp7\obj\Debug\netcoreapp1.1\ConsoleApp7.pdb'. (ConsoleApp7)
1>FastUpToDate: Found output Built 'c:\users\v-masche\Source\Repos\ConsoleApp7\ConsoleApp7\bin\Debug\netcoreapp1.1\ConsoleApp7.runtimeconfig.json'. (ConsoleApp7)
1>FastUpToDate: Found output Built 'c:\users\v-masche\Source\Repos\ConsoleApp7\ConsoleApp7\obj\Debug\netcoreapp1.1\ConsoleApp7.dll'. (ConsoleApp7)
1>FastUpToDate: Lastest write timestamp on input is 5/31/2017 8:39:08 PM on 'c:\users\v-masche\Source\Repos\ConsoleApp7\ConsoleApp7\obj\ConsoleApp7.csproj.nuget.g.targets'. (ConsoleApp7)
1>FastUpToDate: Earliest write timestamp on output is 5/31/2017 8:39:11 PM on 'c:\users\v-masche\Source\Repos\ConsoleApp7\ConsoleApp7\obj\Debug\netcoreapp1.1\ConsoleApp7.dll'. (ConsoleApp7)
1>FastUpToDate: Project is up to date. (ConsoleApp7)
========== Build: 0 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========
@mattscheffer
Copy link
Author

mattscheffer commented May 31, 2017

This also works with the default new xml file, which should stop build anyways as it doesn't have a root element.

@srivatsn srivatsn added the Bug This is a functional issue in already written code. label May 31, 2017
@srivatsn srivatsn added this to the 15.3 milestone May 31, 2017
@srivatsn
Copy link
Contributor

@mattscheffer can you try adding that existing cs file explicitly in the project by editing the csproj? i.e add a <Compile Include="NewFile.cs" /> to the project? I suspect if new files are being added\removed through globs then that's not being respected.

@mattscheffer
Copy link
Author

@srivatsn

A couple of things on that.

  1. I'm not sure this is a valid check. FastUpdate does detect changes to the .csproj file anyways and recompiles anyways. It may not be at all indicative even if we add the compile to the .csproj.
  2. It's actually not letting me edit the .csproj with compile include anyways. It's getting duplicates with the globals, by the look of it. There may be a way around it but I apparently need to make a new targets file to get it to work correctly.
Severity	Code	Description	Project	File	Line	Suppression State
Error		Duplicate 'Compile' items were included. The .NET SDK includes 'Compile' items from your project directory by default. You can either remove these items from your project file, or set the 'EnableDefaultCompileItems' property to 'false' if you want to explicitly include them in your project file. For more information, see https://aka.ms/sdkimplicititems. The duplicate items were: 'Class2.cs'	ClassLibrary11	C:\Program Files\dotnet\sdk\1.1.0-rc4-005029\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.Sdk.DefaultItems.targets	165	

@panopticoncentral
Copy link
Contributor

I think the issue here is globbing. If you add a file, we don't touch the project file. If that new file has a timestamp that's older than the last build, the up to date check will think everything is up to date. Similarly, if you delete a file, the fast up to date check won't notice it because the project file is no longer modified.

@srivatsn
Copy link
Contributor

srivatsn commented Jun 1, 2017

But shouldn't the new file show up as a new source input?

@panopticoncentral
Copy link
Contributor

Yes, but we don't track whether the input list has changed, we just check timestamps. In the non-glob world, that's fine since we track the project file as well, but in the glob world, we need to track if the list changes, that's the fix.

@srivatsn
Copy link
Contributor

srivatsn commented Jun 1, 2017

Oh you are saying it shows up as an input that it has an older timestamp? @rainersigwald doesn't msbuild have a cache for this case - basically a file listing the previous state or something like that?

@rainersigwald
Copy link
Member

Yes, MSBuild hashes the Compile and ReferencePath items and touches $(IntermediateOutputPath)CoreCompileInputs.cache if the list changes. dotnet/msbuild#1328

You could probably add that as an input to FUTD.

@rainersigwald
Copy link
Member

Never mind, that won't be updated when FUTD runs.

CPS watches the directory and knows to reevaluate if a file is added. Maybe you can hook that somehow? @lifengl?

@panopticoncentral
Copy link
Contributor

Since we're subscribed to the dataflow, we'll get update notifications for items. We just need to invalidate when we receive notification that the item list has changed. It does mean that the first build after you open the project will always fail the fast up to date check. (If we really want to not do that, I guess we could try and do the same hashing and check MSBuild's file, but that seems like a further step.)

@rainersigwald
Copy link
Member

I believe the policy from MSBuild is "don't depend on the hash algorithm being stable in any way across releases" so I'd advise against reimplementing in that way. Right @AndyGerlicher?

@panopticoncentral panopticoncentral added the Resolution-Fixed The bug has been fixed, refer to the milestone to see in which release it was fixed. label Jun 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This is a functional issue in already written code. Resolution-Fixed The bug has been fixed, refer to the milestone to see in which release it was fixed.
Projects
None yet
Development

No branches or pull requests

4 participants