F# application compiled every run, even if nothing was modified
See original GitHub issueSteps to reproduce
Follow the F# Getting Started tutorial below, up to and including “Writing a Console Application which Consumes the Class Library” https://docs.microsoft.com/en-us/dotnet/articles/fsharp/getting-started-netcore
cd into App directory
type dotnet run
twice
Expected behavior
On the first run it should compile the application and run. On the second time it should run without compilation
Actual behavior
The programs compiles every time you type dotnet run, although nothing changed in the sources. Here’s actual output:
Project Library (.NETStandard,Version=v1.6) will be compiled because inputs were modified
Compiling Library for .NETStandard,Version=v1.6
Compilation succeeded.
0 Warning(s)
0 Error(s)
Time elapsed 00:00:05.3504307
Project App (.NETCoreApp,Version=v1.0) will be compiled because dependencies changed
Compiling App for .NETCoreApp,Version=v1.0
/home/mike/dev/fsharp-test/src/App/project.lock.json(1,0): warning NU1006: Dependencies in project.json were modified. Please run "dotnet restore" to generate a new lock file.
Compilation succeeded.
1 Warning(s)
0 Error(s)
Time elapsed 00:00:05.6243024
Nice command line arguments!. Here's what JSON.NET has to say about them:
Environment data
dotnet --info
output:
.NET Command Line Tools (1.0.0-preview2-003121)
Product Information:
Version: 1.0.0-preview2-003121
Commit SHA-1 hash: 1e9d529bc5
Runtime Environment:
OS Name: ubuntu
OS Version: 16.04
OS Platform: Linux
RID: ubuntu.16.04-x64
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Why does my target always get recompiled, even if nothing ...
My Makefile keeps recompiling the executable file ( .out ) even if nothing has changed in source code. The target has some dependencies...
Read more >Compile procedure automatically -- how to avoid cascading in...
I've two procedures: A calls B to do something. If I compile B, then A will become invalid. Can I have any setting...
Read more >How C++ Works: Understanding Compilation
The first step that the compiler will do on a source file is run the preprocessor on it. Only source files are passed...
Read more >Makefile Tutorial By Example
The goal of Makefiles is to compile whatever files need to be compiled, ... But there's a problem: if we modify blah.c and...
Read more >Precompiling Your Website (C#)
The automatic compilation option is simple to use. There's no explicit compilation step and only the files that have been modified need to ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This has been fixed for C# in preview3 and @enricosada is working on an update to F#.
Same issue for C# projects. So it should be fixed. Strange is output says
Project XYZ (.NETStandard,Version=v1.6) will be compiled because inputs were modified
for all projects under solution, even when you dont touch any of files.