-
-
Notifications
You must be signed in to change notification settings - Fork 227
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
NETStandard 1.3 support #312
Comments
Note: According to the .net api browser it should be available from .net standard 1.0 on. |
+1 |
do any of you want to have a go at fixing this? |
No, the problem keeps |
I found a workaround, downgrade for version 2.2.4 |
"the problem keeps"? |
sorry my english is not so good. I want to say that "the problem remains" |
This workaround isn't perfect actually, Fody 2.2.4 doesn't seem to play well with new dotnet build command. So, this still needs a fix. I'll try to investigate and see what's causing the issue, but it would be great if anyone more experienced could also take a look at this (perhaps, it can save some time) |
Unable to reproduce this bug using PropertyChanged.Fody's testing environment. Assemblies targeting NETStandard 1.0 and weaved by Fody's .ExecuteTestRun() method called in Tests project (which targets net46; netcoreapp2.0) are weaved just fine. Code: public class AssemblyWithOldNetStandardTests
{
[Fact]
public void Load()
{
var weavingTask = new ModuleWeaver();
var testResult = weavingTask.ExecuteTestRun("AssemblyWithOldNetStandard.dll");
var instance = testResult.GetInstance("SampleImplementor");
var eventCount = 0;
((INotifyPropertyChanged)instance).PropertyChanged += (sender, args) => eventCount++;
instance.B = 10;
Assert.Equal(1, eventCount); // OK
}
} AssemblyWithOldNetStandard setup: <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard1.0</TargetFramework>
<DisableFody>true</DisableFody>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\..\PropertyChanged\PropertyChanged.csproj" />
</ItemGroup>
</Project> SampleImplementor.cs [AddINotifyPropertyChangedInterface]
public class SampleImplementor
{
public int B { get; set; }
} So maybe there is an issue with msbuild task or the nuget package itself... 🤔 |
can someone upload a repro solution |
Here it is: https://github.com/worldbeater/PropertyChanged_312_repro |
Hi @SimonCropp!
There seems to be an issue with NETStandard 1.3. When I create an empty class library targeting this NETStandard version, add PropertyChanged.Fody and build it using dotnet build, I get the following output:
Project setup:
If I change project target framework version to NETStandard 2.0, the error goes away. So does this mean, that lower standard versions are no longer supported?
Thanks.
UPD: The same thing happens to NETStandard 1.0, 1.1, ..., 1.6
The text was updated successfully, but these errors were encountered: