Skip to content

Adding support for SpecificVersion attribute on assembly references - #2413

Merged
forki merged 4 commits into
fsprojects:masterfrom
batzen:master
Jun 12, 2017
Merged

forki merged 4 commits into
fsprojects:masterfrom
batzen:master

Conversation

@batzen

@batzen batzen commented Jun 11, 2017 •

Copy link
Copy Markdown
Contributor

This PR adds support for SpecificVersion on assembly references.
This was requested in #2040.

  • Implement feature
  • Fix unit and integration tests (partially done, see below)
  • Add new tests to verify feature

I'm currently having a hard time trying to find out which integration tests i broke with my change as they often fail because either the path is too long (exceeds 260 characters for file or 248 for directory) (solved by moving to c:\paket) or they fail with

Expected: "...argetFrameworkVersion) == 'v4.6.1' Or $(TargetFrameworkVer..."
But was: "...argetFrameworkVersion) == 'v4.5' Or $(TargetFrameworkVersi..."

The tests failing with this error are:

The following tests timeout:

I don't think those fails are caused by my changes, but i can't be sure...

Please tell me if i did anything wrong as this is the first time i am in contact with F#.

@matthid

matthid commented Jun 11, 2017

Copy link
Copy Markdown
Member

can you rebase/merge? Currently master is green so it might solve the spurious issues you encountered (there was a problem with the integration test suite which was solved)...

@matthid

matthid commented Jun 11, 2017

Copy link
Copy Markdown
Member

Nevermind you were faster :)

@forki

forki commented Jun 11, 2017

Copy link
Copy Markdown
Member

Is this flag enabled by default?

@batzen

batzen commented Jun 11, 2017

Copy link
Copy Markdown
Contributor Author

The default is True which is the same as omitting it in assembly references.

@forki

forki commented Jun 11, 2017

Copy link
Copy Markdown
Member

We should not emit it then in default case to reduce impact in csproj

@batzen

batzen commented Jun 11, 2017

Copy link
Copy Markdown
Contributor Author

I thought that i should add it to csproj as private is also added by default.
If you don't want it to be added i will remove it if it's not specified or equals true.

@matthid

matthid commented Jun 11, 2017

Copy link
Copy Markdown
Member

@forki If we get this into paket 5 I guess it's OKisch, because it will already rewrite a lot because of new restriction system, netcore and xamarin support...

@forki

forki commented Jun 11, 2017 via email

Copy link
Copy Markdown
Member

@batzen

batzen commented Jun 11, 2017

Copy link
Copy Markdown
Contributor Author

So which way should i go?
Omit it if it's not specified (None) or also omit it if it's specified with the default value of True?

@forki

forki commented Jun 11, 2017 via email

Copy link
Copy Markdown
Member

@batzen

batzen commented Jun 11, 2017

Copy link
Copy Markdown
Contributor Author

Ok.
Will make the changes accordingly and revert most changes to tests.

@batzen

batzen commented Jun 11, 2017

Copy link
Copy Markdown
Contributor Author

Should be as expected now + tests are present now too.

@forki

forki commented Jun 12, 2017

Copy link
Copy Markdown
Member

💋

@forki
forki merged commit d7754c6 into fsprojects:master Jun 12, 2017
@forki

forki commented Jun 13, 2017

Copy link
Copy Markdown
Member

@batzen

batzen commented Jun 13, 2017

Copy link
Copy Markdown
Contributor Author

Of course. Didn't know about that. Will get it done till friday.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants