You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It fails, because there's an error in the library. It subtracts instead of adds.
Fix the error:
diff --git a/Lib/Class1.cs b/Lib/Class1.cs
index a33c4c0..76a1c90 100644
--- a/Lib/Class1.cs+++ b/Lib/Class1.cs@@ -6,7 +6,7 @@ namespace Lib
{
public static int Add(int a, int b)
{
- return a - b; // note deliberate error+ return a + b;
}
}
}
That's because the fast-up-to-date check in csproj doesn't understand that it needs to tell MSBuild to build the app even though its direct input (the lib.dll reference assembly) hasn't changed. CoreCompile will be skipped, but the build will copy the implementation assembly along, so that the updated implementation is available at runtime.
The text was updated successfully, but these errors were encountered:
Tom's triage notes: probably not hard to fix (I think the problem is we're only considering the reference assembly as an output item and not also the implementation assembly) but not something I think we have to fix, either.
Ah, no, it's a little more complicated than that: we need to consider both the reference assembly and implementation assemblies to be outputs, and for each input reference if there is an associated implementation assembly we need to consider that input as well.
After further review of the spec (#2254) and implementation (#2414) for the CPS-based project system, I've decided this will be more complicated than initially thought to implement for CSProj. As such, we're not going to fix this.
@rainersigwald wrote:
MixedSolutionWithRefAssemblies.zip
This solution has:
The unit test project tests library functionality by calling the app that calls the library.
That's because the fast-up-to-date check in csproj doesn't understand that it needs to tell MSBuild to build the app even though its direct input (the
lib.dll
reference assembly) hasn't changed.CoreCompile
will be skipped, but the build will copy the implementation assembly along, so that the updated implementation is available at runtime.The text was updated successfully, but these errors were encountered: